Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / RunTime / Configuration / WorkflowRuntimeServiceElement.cs / 1305376 / WorkflowRuntimeServiceElement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Configuration; using System.Collections.Specialized; namespace System.Workflow.Runtime.Configuration { ///Configuration element for a WorkflowRuntime service public class WorkflowRuntimeServiceElement : ConfigurationElement { ///Collection of service-specific name-value pairs private NameValueCollection _parameters = new NameValueCollection(); private const string _type = "type"; public NameValueCollection Parameters { get { return _parameters; } } public WorkflowRuntimeServiceElement() { } ///The assembly-qualified type name of the service ///Type is also used as the collection key in WorkflowRuntimeServiceSettingsCollections [ConfigurationProperty(_type, DefaultValue = null)] public string Type { get { return (string)base[_type]; } set { if (value == null) throw new ArgumentNullException("value"); base[_type] = value; } } protected override bool OnDeserializeUnrecognizedAttribute(string name, string value) { _parameters.Add(name, value); return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Configuration; using System.Collections.Specialized; namespace System.Workflow.Runtime.Configuration { ///Configuration element for a WorkflowRuntime service public class WorkflowRuntimeServiceElement : ConfigurationElement { ///Collection of service-specific name-value pairs private NameValueCollection _parameters = new NameValueCollection(); private const string _type = "type"; public NameValueCollection Parameters { get { return _parameters; } } public WorkflowRuntimeServiceElement() { } ///The assembly-qualified type name of the service ///Type is also used as the collection key in WorkflowRuntimeServiceSettingsCollections [ConfigurationProperty(_type, DefaultValue = null)] public string Type { get { return (string)base[_type]; } set { if (value == null) throw new ArgumentNullException("value"); base[_type] = value; } } protected override bool OnDeserializeUnrecognizedAttribute(string name, string value) { _parameters.Add(name, value); return true; } } } // 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
- UsernameTokenFactoryCredential.cs
- OledbConnectionStringbuilder.cs
- DesignerActionItem.cs
- PtsCache.cs
- ToolStripItemTextRenderEventArgs.cs
- ClientSettings.cs
- SqlDataRecord.cs
- GridSplitter.cs
- ImageMap.cs
- Point3DIndependentAnimationStorage.cs
- HitTestFilterBehavior.cs
- TabRenderer.cs
- Point3DValueSerializer.cs
- LogLogRecordHeader.cs
- DeriveBytes.cs
- PanelStyle.cs
- PriorityBinding.cs
- BooleanFunctions.cs
- PackagePartCollection.cs
- SiteMapNodeItemEventArgs.cs
- SerialStream.cs
- ArgumentOutOfRangeException.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ChannelReliableSession.cs
- StringCollectionMarkupSerializer.cs
- GeometryValueSerializer.cs
- HttpCachePolicyElement.cs
- DataGridRowsPresenter.cs
- CompositeCollectionView.cs
- ScriptingProfileServiceSection.cs
- FrameAutomationPeer.cs
- BaseResourcesBuildProvider.cs
- WeakReadOnlyCollection.cs
- HttpGetProtocolReflector.cs
- SemaphoreFullException.cs
- OdbcInfoMessageEvent.cs
- ContainerFilterService.cs
- QueryInterceptorAttribute.cs
- TypeSemantics.cs
- SmtpCommands.cs
- ActivityExecutorDelegateInfo.cs
- ResolveNameEventArgs.cs
- AsyncStreamReader.cs
- XmlnsCache.cs
- ByteStack.cs
- Propagator.cs
- CollectionContainer.cs
- WebRequest.cs
- ObjectKeyFrameCollection.cs
- ClientProtocol.cs
- SelectionItemPattern.cs
- CodeIndexerExpression.cs
- HotSpotCollectionEditor.cs
- MenuRendererClassic.cs
- HttpProfileGroupBase.cs
- CodeDomConfigurationHandler.cs
- SharedDp.cs
- DefaultPrintController.cs
- CssClassPropertyAttribute.cs
- FormViewCommandEventArgs.cs
- IdentifierService.cs
- ArgumentValueSerializer.cs
- XmlParserContext.cs
- Separator.cs
- RoutedPropertyChangedEventArgs.cs
- SupportingTokenBindingElement.cs
- DocumentDesigner.cs
- RayHitTestParameters.cs
- storepermission.cs
- SqlResolver.cs
- PnrpPermission.cs
- NamespaceList.cs
- ConcurrentBag.cs
- GridView.cs
- StyleSheetRefUrlEditor.cs
- XmlIlVisitor.cs
- FileFormatException.cs
- GreenMethods.cs
- ModelItemKeyValuePair.cs
- SqlClientMetaDataCollectionNames.cs
- TextOnlyOutput.cs
- CharacterHit.cs
- PersonalizationStateQuery.cs
- SerializationException.cs
- Emitter.cs
- SafeRightsManagementHandle.cs
- CompositionTarget.cs
- PrePostDescendentsWalker.cs
- LinkedList.cs
- TextParaLineResult.cs
- PieceDirectory.cs
- AnnotationAdorner.cs
- X509ServiceCertificateAuthenticationElement.cs
- ItemsPresenter.cs
- XPathBinder.cs
- SqlDataSourceFilteringEventArgs.cs
- CommandHelper.cs
- SafeNativeMethods.cs
- CatalogPartCollection.cs
- Decoder.cs