Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / Tracking / Configuration / TrackingSection.cs / 1305376 / TrackingSection.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activities.Tracking.Configuration { using System; using System.Configuration; using System.Activities.Tracking; using System.Diagnostics.CodeAnalysis; using System.Runtime; using System.Collections.Generic; using System.Collections.ObjectModel; public class TrackingSection : ConfigurationSection { CollectiontrackingProfiles; ConfigurationPropertyCollection properties; public TrackingSection() { } protected override ConfigurationPropertyCollection Properties { get { if (this.properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(new ConfigurationProperty(TrackingConfigurationStrings.Profiles, typeof(System.ServiceModel.Activities.Tracking.Configuration.ProfileElementCollection), null, null, null, System.Configuration.ConfigurationPropertyOptions.None)); this.properties = properties; } return this.properties; } } [ConfigurationProperty(TrackingConfigurationStrings.Profiles)] public ProfileElementCollection Profiles { get { return (ProfileElementCollection)base[TrackingConfigurationStrings.Profiles]; } } [SuppressMessage(FxCop.Category.Configuration, FxCop.Rule.ConfigurationPropertyAttributeRule, Justification = "This property returns a list of profiles in format suitable for the runtime")] public Collection TrackingProfiles { get { if (this.trackingProfiles == null) { this.trackingProfiles = new Collection (); foreach (ProfileElement profileElement in this.Profiles) { if (profileElement.Workflows != null) { foreach (ProfileWorkflowElement workflowElement in profileElement.Workflows) { TrackingProfile profile = new TrackingProfile() { Name = profileElement.Name, ImplementationVisibility = profileElement.ImplementationVisibility, ActivityDefinitionId = workflowElement.ActivityDefinitionId }; workflowElement.AddQueries(profile.Queries); this.trackingProfiles.Add(profile); } } } } return this.trackingProfiles; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StreamMarshaler.cs
- SqlBulkCopyColumnMappingCollection.cs
- XmlEncoding.cs
- SymmetricSecurityBindingElement.cs
- DbConnectionFactory.cs
- CopyOfAction.cs
- InfoCardSymmetricAlgorithm.cs
- DrawingVisualDrawingContext.cs
- TableItemProviderWrapper.cs
- MimeObjectFactory.cs
- SqlFunctionAttribute.cs
- CollectionChangeEventArgs.cs
- Debug.cs
- Property.cs
- SQLDecimalStorage.cs
- SeparatorAutomationPeer.cs
- SafeNativeMethods.cs
- LocatorPart.cs
- Propagator.cs
- QilLoop.cs
- DBSchemaRow.cs
- FileStream.cs
- PackageDigitalSignatureManager.cs
- InternalCache.cs
- QilExpression.cs
- DataGridViewMethods.cs
- CharStorage.cs
- Rectangle.cs
- IndexedString.cs
- DataObjectPastingEventArgs.cs
- FixedSOMPageConstructor.cs
- ScrollContentPresenter.cs
- WebPartZoneDesigner.cs
- sqlstateclientmanager.cs
- CompositeControl.cs
- ProcessModelInfo.cs
- MachinePropertyVariants.cs
- CurrentChangingEventArgs.cs
- WebRequestModuleElement.cs
- DeploymentExceptionMapper.cs
- FontUnitConverter.cs
- LocatorManager.cs
- IISUnsafeMethods.cs
- DropDownButton.cs
- shaperfactoryquerycacheentry.cs
- XmlnsCache.cs
- DiscreteKeyFrames.cs
- SectionVisual.cs
- ConnectionPointCookie.cs
- CngProvider.cs
- DictionarySectionHandler.cs
- ContextMenu.cs
- _AutoWebProxyScriptWrapper.cs
- Keywords.cs
- ScrollEvent.cs
- SqlGatherConsumedAliases.cs
- Attributes.cs
- InputReportEventArgs.cs
- PointF.cs
- HtmlTextArea.cs
- ProxyManager.cs
- SchemaSetCompiler.cs
- OleDragDropHandler.cs
- CellConstantDomain.cs
- QEncodedStream.cs
- ProxyElement.cs
- ValueOfAction.cs
- XmlCustomFormatter.cs
- LongMinMaxAggregationOperator.cs
- CounterSampleCalculator.cs
- securitycriticaldataClass.cs
- LinkUtilities.cs
- CompilerError.cs
- ValidationHelper.cs
- ScrollPatternIdentifiers.cs
- AnimationException.cs
- TextEditorTables.cs
- ImageAnimator.cs
- BStrWrapper.cs
- NetCodeGroup.cs
- TextShapeableCharacters.cs
- HandlerElement.cs
- ServiceOperationWrapper.cs
- BaseUriHelper.cs
- DataTemplateSelector.cs
- TdsParserSessionPool.cs
- DefaultHttpHandler.cs
- FullTextState.cs
- AliasGenerator.cs
- AnimationException.cs
- FontFamily.cs
- SystemColors.cs
- WindowsImpersonationContext.cs
- SafeHandles.cs
- IfAction.cs
- DependencyObjectPropertyDescriptor.cs
- DataGridViewSortCompareEventArgs.cs
- CachedPathData.cs
- ParseChildrenAsPropertiesAttribute.cs
- DebugHandleTracker.cs