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
- BindingValueChangedEventArgs.cs
- Int64Converter.cs
- GridProviderWrapper.cs
- AsyncSerializedWorker.cs
- SimpleType.cs
- SpecularMaterial.cs
- ExpressionBinding.cs
- ChameleonKey.cs
- DesignerForm.cs
- Clipboard.cs
- ValidationSummary.cs
- DatePickerDateValidationErrorEventArgs.cs
- DynamicResourceExtension.cs
- AuthenticationConfig.cs
- SqlNodeAnnotations.cs
- WorkflowServiceHostFactory.cs
- BlockExpression.cs
- WinFormsSecurity.cs
- Thumb.cs
- XmlAttributeOverrides.cs
- backend.cs
- AggregateNode.cs
- DefaultTraceListener.cs
- XmlAutoDetectWriter.cs
- CopyNodeSetAction.cs
- SessionStateModule.cs
- FormViewPageEventArgs.cs
- Control.cs
- SqlHelper.cs
- TraceListener.cs
- SchemaNotation.cs
- XmlRootAttribute.cs
- PointCollection.cs
- GridViewDeletedEventArgs.cs
- CellConstantDomain.cs
- TraceRecord.cs
- TypeNameConverter.cs
- Attributes.cs
- DigitalSignatureProvider.cs
- MonthChangedEventArgs.cs
- ValueUtilsSmi.cs
- FileLevelControlBuilderAttribute.cs
- ButtonBaseAdapter.cs
- TraceHandler.cs
- ValueUtilsSmi.cs
- PartialToken.cs
- ContainerControl.cs
- XmlSigningNodeWriter.cs
- OrderedDictionaryStateHelper.cs
- CodeDefaultValueExpression.cs
- XPathSelectionIterator.cs
- UrlMapping.cs
- MsmqIntegrationSecurityMode.cs
- DateTimeUtil.cs
- BitmapCache.cs
- DataViewListener.cs
- DbParameterHelper.cs
- ManagementDateTime.cs
- ScriptIgnoreAttribute.cs
- StartUpEventArgs.cs
- LinkedList.cs
- ServiceDebugElement.cs
- ProcessModuleCollection.cs
- StreamWriter.cs
- AspCompat.cs
- XamlSerializerUtil.cs
- OpenTypeLayoutCache.cs
- Misc.cs
- Point3DIndependentAnimationStorage.cs
- XslVisitor.cs
- ContractNamespaceAttribute.cs
- TypeValidationEventArgs.cs
- FlagsAttribute.cs
- BamlRecordWriter.cs
- EdmConstants.cs
- XmlDataContract.cs
- HostingEnvironmentSection.cs
- TagNameToTypeMapper.cs
- HeaderCollection.cs
- DataErrorValidationRule.cs
- TextServicesManager.cs
- DnsPermission.cs
- EdmRelationshipRoleAttribute.cs
- SimpleBitVector32.cs
- ModelPerspective.cs
- DecimalStorage.cs
- SmiEventStream.cs
- TextModifier.cs
- ContextQuery.cs
- XmlCountingReader.cs
- FontSizeConverter.cs
- MdiWindowListStrip.cs
- ResourceManager.cs
- DataGridViewCheckBoxCell.cs
- IndependentAnimationStorage.cs
- EncodingDataItem.cs
- CodeDomConfigurationHandler.cs
- BitmapEffectGeneralTransform.cs
- EditingCoordinator.cs
- EntityDataSourceEntityTypeFilterConverter.cs