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
- DependsOnAttribute.cs
- DataKey.cs
- RolePrincipal.cs
- SafeArchiveContext.cs
- PinProtectionHelper.cs
- EqualityComparer.cs
- FamilyTypefaceCollection.cs
- DesignerResources.cs
- ToolStripOverflow.cs
- wgx_commands.cs
- TextPointerBase.cs
- DataGridViewLayoutData.cs
- EventWaitHandle.cs
- MetadataFile.cs
- HtmlButton.cs
- ProcessStartInfo.cs
- MetadataItemEmitter.cs
- PrimitiveRenderer.cs
- FlowDocumentReaderAutomationPeer.cs
- QilReference.cs
- ChannelSinkStacks.cs
- SchemaType.cs
- CodeGotoStatement.cs
- Win32PrintDialog.cs
- VsPropertyGrid.cs
- Parameter.cs
- WebPartEditVerb.cs
- controlskin.cs
- InvalidOperationException.cs
- EventSourceCreationData.cs
- KerberosReceiverSecurityToken.cs
- TypedElement.cs
- EdmToObjectNamespaceMap.cs
- DataGridViewDataConnection.cs
- SecurityTraceRecordHelper.cs
- StructuredTypeEmitter.cs
- NavigatorOutput.cs
- AbsoluteQuery.cs
- SafeFindHandle.cs
- ProtectedConfigurationSection.cs
- BaseParaClient.cs
- AndAlso.cs
- BevelBitmapEffect.cs
- FormViewInsertEventArgs.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- MatrixIndependentAnimationStorage.cs
- TransactionScopeDesigner.cs
- DebugHandleTracker.cs
- CacheSection.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- InputProcessorProfiles.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- UIPropertyMetadata.cs
- MediaContextNotificationWindow.cs
- ContentDisposition.cs
- HandledEventArgs.cs
- SslStream.cs
- DataSourceIDConverter.cs
- CompilationPass2Task.cs
- FrameworkElementFactoryMarkupObject.cs
- ResolveRequestResponseAsyncResult.cs
- ProxyRpc.cs
- BitmapCache.cs
- WebServiceAttribute.cs
- DynamicScriptObject.cs
- MessageBox.cs
- CodeMemberProperty.cs
- DbProviderSpecificTypePropertyAttribute.cs
- FormViewCommandEventArgs.cs
- UITypeEditors.cs
- BitmapCodecInfoInternal.cs
- XamlSerializerUtil.cs
- BuildProvidersCompiler.cs
- SqlFunctionAttribute.cs
- ReachVisualSerializerAsync.cs
- PropertyValue.cs
- AttachedPropertyBrowsableAttribute.cs
- ExeContext.cs
- StringAnimationBase.cs
- VScrollProperties.cs
- DeclaredTypeElement.cs
- EntitySetBase.cs
- ErrorWebPart.cs
- InternalConfigSettingsFactory.cs
- ProtectedConfiguration.cs
- AbstractExpressions.cs
- DependencyPropertyAttribute.cs
- DescendentsWalker.cs
- PhysicalAddress.cs
- PrintController.cs
- XmlSchemaDatatype.cs
- RectAnimation.cs
- X509IssuerSerialKeyIdentifierClause.cs
- XmlSchemaComplexType.cs
- HttpFileCollection.cs
- NativeMethods.cs
- WasEndpointConfigContainer.cs
- WorkflowMarkupSerializer.cs
- DateTimePicker.cs
- SqlFlattener.cs