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
- XPathMultyIterator.cs
- StreamGeometry.cs
- FormViewPageEventArgs.cs
- VisualState.cs
- IISUnsafeMethods.cs
- InvokePattern.cs
- KeyManager.cs
- LineProperties.cs
- BindableTemplateBuilder.cs
- Base64Decoder.cs
- Point3DCollectionValueSerializer.cs
- InplaceBitmapMetadataWriter.cs
- CompositeFontInfo.cs
- SamlAssertion.cs
- ParseElement.cs
- TextBox.cs
- SkewTransform.cs
- ContainerParagraph.cs
- InfiniteTimeSpanConverter.cs
- LayoutTable.cs
- XmlAnyAttributeAttribute.cs
- DataContractSerializerSection.cs
- SettingsBase.cs
- DataGridCellAutomationPeer.cs
- BamlLocalizer.cs
- TreeNode.cs
- _NetworkingPerfCounters.cs
- UnknownWrapper.cs
- BuildProviderAppliesToAttribute.cs
- Compilation.cs
- CodeCompileUnit.cs
- AssemblyName.cs
- ComboBoxRenderer.cs
- RegionData.cs
- Vector3DCollection.cs
- ViewGenResults.cs
- StrongNamePublicKeyBlob.cs
- AnonymousIdentificationModule.cs
- pingexception.cs
- ImportCatalogPart.cs
- EditorZoneBase.cs
- WinInetCache.cs
- DataGridViewColumnHeaderCell.cs
- DataBindingHandlerAttribute.cs
- SQLInt32.cs
- PopupEventArgs.cs
- UserControlParser.cs
- ServiceMetadataExtension.cs
- X509ChainElement.cs
- DirectoryLocalQuery.cs
- TypeBuilderInstantiation.cs
- ModelPropertyImpl.cs
- PageAsyncTask.cs
- WebScriptServiceHostFactory.cs
- Effect.cs
- ListViewInsertionMark.cs
- IDispatchConstantAttribute.cs
- NameNode.cs
- ExpressionPrefixAttribute.cs
- BamlRecordHelper.cs
- DllNotFoundException.cs
- dsa.cs
- XmlSchemaChoice.cs
- Number.cs
- ContextProperty.cs
- EntityDataSourceDesigner.cs
- RIPEMD160.cs
- IISMapPath.cs
- ProfileEventArgs.cs
- WebControlAdapter.cs
- ObjectList.cs
- LicFileLicenseProvider.cs
- DocumentEventArgs.cs
- DbParameterCollection.cs
- MultilineStringConverter.cs
- RootNamespaceAttribute.cs
- assertwrapper.cs
- ToolStripDropDownClosingEventArgs.cs
- FtpWebResponse.cs
- UnsafeNativeMethods.cs
- SimpleHandlerBuildProvider.cs
- ChangeNode.cs
- CookieHandler.cs
- ManifestResourceInfo.cs
- LogicalMethodInfo.cs
- newitemfactory.cs
- ActivityDesignerResources.cs
- DataPager.cs
- OracleSqlParser.cs
- StateDesignerConnector.cs
- CodeDelegateCreateExpression.cs
- MatcherBuilder.cs
- AccessibilityHelperForXpWin2k3.cs
- XmlDataDocument.cs
- LayoutDump.cs
- MulticastNotSupportedException.cs
- CreateUserErrorEventArgs.cs
- SudsWriter.cs
- ClickablePoint.cs
- SHA256Cng.cs