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
- FederatedMessageSecurityOverHttp.cs
- TableItemStyle.cs
- DelimitedListTraceListener.cs
- DynamicILGenerator.cs
- DataObjectAttribute.cs
- XComponentModel.cs
- TypeNameConverter.cs
- TargetParameterCountException.cs
- WorkflowTransactionOptions.cs
- ImageMapEventArgs.cs
- BindingExpressionBase.cs
- CompatibleComparer.cs
- LinqDataSource.cs
- PreviewPrintController.cs
- FacetEnabledSchemaElement.cs
- CustomError.cs
- LocalizableResourceBuilder.cs
- SafeNativeMethods.cs
- ConsoleCancelEventArgs.cs
- XmlHelper.cs
- PermissionSet.cs
- OutputScopeManager.cs
- ErrorActivity.cs
- SecurityTokenResolver.cs
- PowerModeChangedEventArgs.cs
- XmlTypeMapping.cs
- XmlSerializerVersionAttribute.cs
- CoreSwitches.cs
- TreeNode.cs
- EntityDataSourceChangingEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- AnonymousIdentificationModule.cs
- XmlCompatibilityReader.cs
- WindowInteractionStateTracker.cs
- SystemIPv6InterfaceProperties.cs
- DataGridPageChangedEventArgs.cs
- OptimalTextSource.cs
- DateTime.cs
- SettingsContext.cs
- CancellationHandler.cs
- TemplateControlParser.cs
- CreatingCookieEventArgs.cs
- HttpVersion.cs
- XmlSchemaComplexType.cs
- DirtyTextRange.cs
- _ConnectOverlappedAsyncResult.cs
- AsyncPostBackErrorEventArgs.cs
- BindingList.cs
- Context.cs
- DynamicPropertyHolder.cs
- AsyncOperationManager.cs
- SkinBuilder.cs
- PropertyInformationCollection.cs
- XmlFormatWriterGenerator.cs
- SafeThemeHandle.cs
- UserControlFileEditor.cs
- IsolatedStorageSecurityState.cs
- RedistVersionInfo.cs
- CommandBinding.cs
- ComAwareEventInfo.cs
- TransformPattern.cs
- LinkConverter.cs
- ScriptResourceMapping.cs
- CurrentChangedEventManager.cs
- KnownTypeAttribute.cs
- FrameworkContextData.cs
- ipaddressinformationcollection.cs
- NullRuntimeConfig.cs
- InputScopeManager.cs
- ReflectionTypeLoadException.cs
- IgnoreDeviceFilterElement.cs
- CustomErrorsSection.cs
- RemoteCryptoTokenProvider.cs
- TreeViewDataItemAutomationPeer.cs
- DashStyle.cs
- StylusDownEventArgs.cs
- QilName.cs
- Transform3DGroup.cs
- PersistChildrenAttribute.cs
- MediaContextNotificationWindow.cs
- RepeatButtonAutomationPeer.cs
- WindowsListViewScroll.cs
- EventSinkHelperWriter.cs
- HierarchicalDataTemplate.cs
- OptimalBreakSession.cs
- SchemaManager.cs
- BaseValidator.cs
- RichTextBoxDesigner.cs
- WebPartCollection.cs
- CollectionViewSource.cs
- PtsPage.cs
- BaseDataBoundControlDesigner.cs
- PlainXmlSerializer.cs
- ProvidePropertyAttribute.cs
- HighlightComponent.cs
- RectConverter.cs
- PersonalizationStateInfo.cs
- AttributeProviderAttribute.cs
- XXXOnTypeBuilderInstantiation.cs
- ObjectConverter.cs