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
- ProfilePropertySettings.cs
- KnownColorTable.cs
- QEncodedStream.cs
- ProviderUtil.cs
- SymbolType.cs
- WrapperEqualityComparer.cs
- CombinedGeometry.cs
- ExtensionCollection.cs
- ApplicationException.cs
- GroupBox.cs
- ReadContentAsBinaryHelper.cs
- MasterPageCodeDomTreeGenerator.cs
- SmtpNegotiateAuthenticationModule.cs
- TrustManager.cs
- BasicCommandTreeVisitor.cs
- BuilderElements.cs
- Maps.cs
- BuildProviderAppliesToAttribute.cs
- TimeSpanMinutesConverter.cs
- UidManager.cs
- IncomingWebRequestContext.cs
- ContextMarshalException.cs
- XamlHostingSection.cs
- NodeLabelEditEvent.cs
- MobileControlsSectionHelper.cs
- EdmEntityTypeAttribute.cs
- ConnectivityStatus.cs
- WebPartEventArgs.cs
- ValueSerializerAttribute.cs
- PathNode.cs
- RectangleConverter.cs
- MissingMemberException.cs
- ButtonBaseAutomationPeer.cs
- SettingsPropertyNotFoundException.cs
- PassportAuthentication.cs
- BitmapScalingModeValidation.cs
- CalculatedColumn.cs
- Repeater.cs
- RenderingEventArgs.cs
- MissingSatelliteAssemblyException.cs
- CorrelationQuery.cs
- CodeParameterDeclarationExpression.cs
- CompilerLocalReference.cs
- Latin1Encoding.cs
- ConvertersCollection.cs
- ValidationResult.cs
- TransportElement.cs
- DropDownButton.cs
- Imaging.cs
- DecimalConstantAttribute.cs
- DataServiceStreamProviderWrapper.cs
- LineGeometry.cs
- ThrowHelper.cs
- HGlobalSafeHandle.cs
- PackageRelationship.cs
- EndpointDiscoveryBehavior.cs
- KnownBoxes.cs
- RegistryKey.cs
- BindMarkupExtensionSerializer.cs
- DebugHandleTracker.cs
- GridViewRow.cs
- validationstate.cs
- Typography.cs
- ReadOnlyObservableCollection.cs
- TypeGeneratedEventArgs.cs
- Invariant.cs
- GroupStyle.cs
- VideoDrawing.cs
- Verify.cs
- OdbcHandle.cs
- DataTableClearEvent.cs
- StrokeFIndices.cs
- TextBounds.cs
- PermissionToken.cs
- CodeTypeOfExpression.cs
- ToolStripOverflow.cs
- AttributeXamlType.cs
- RolePrincipal.cs
- DbConnectionPoolGroupProviderInfo.cs
- TextAutomationPeer.cs
- DeclarationUpdate.cs
- SqlCaseSimplifier.cs
- BinaryObjectWriter.cs
- Select.cs
- ParameterToken.cs
- WebPartTransformerAttribute.cs
- WorkflowOperationInvoker.cs
- ConstructorExpr.cs
- HostDesigntimeLicenseContext.cs
- SelectedGridItemChangedEvent.cs
- StreamResourceInfo.cs
- AnimationLayer.cs
- TextTreeTextElementNode.cs
- FrameworkElement.cs
- Point.cs
- RtfNavigator.cs
- MsmqIntegrationChannelFactory.cs
- MostlySingletonList.cs
- SystemGatewayIPAddressInformation.cs
- NameSpaceExtractor.cs