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
- ProviderBase.cs
- XmlILCommand.cs
- WindowsClaimSet.cs
- NamespaceQuery.cs
- ObjectItemCollection.cs
- DesignerCatalogPartChrome.cs
- Setter.cs
- RelatedView.cs
- ArraySubsetEnumerator.cs
- _SingleItemRequestCache.cs
- XPathNode.cs
- Logging.cs
- DynamicResourceExtensionConverter.cs
- ExtenderProviderService.cs
- Nullable.cs
- HandlerMappingMemo.cs
- Util.cs
- _StreamFramer.cs
- KeyTimeConverter.cs
- PictureBox.cs
- grammarelement.cs
- Symbol.cs
- FastPropertyAccessor.cs
- MessageQueueException.cs
- SymLanguageVendor.cs
- WmpBitmapEncoder.cs
- XmlCodeExporter.cs
- RelatedImageListAttribute.cs
- DecimalStorage.cs
- HttpConfigurationSystem.cs
- ServiceOperationInfoTypeConverter.cs
- EditCommandColumn.cs
- DateTimeFormatInfoScanner.cs
- VisualStateManager.cs
- CacheRequest.cs
- PropertyDescriptorComparer.cs
- ProtocolState.cs
- UserCancellationException.cs
- TemplateField.cs
- AnnotationComponentManager.cs
- JsonQueryStringConverter.cs
- AssociatedControlConverter.cs
- TextBreakpoint.cs
- _Events.cs
- ImmutableAssemblyCacheEntry.cs
- ScrollBar.cs
- ConfigXmlDocument.cs
- ActiveXHelper.cs
- WebPartDescription.cs
- EventWaitHandle.cs
- SqlUserDefinedAggregateAttribute.cs
- CollectionBuilder.cs
- CompositeDataBoundControl.cs
- EntityDataSourceContainerNameItem.cs
- ExtendedProtectionPolicy.cs
- LoginView.cs
- BeginEvent.cs
- SqlParameterizer.cs
- recordstatefactory.cs
- NodeLabelEditEvent.cs
- ResourceAssociationSetEnd.cs
- EventManager.cs
- Color.cs
- OdbcDataAdapter.cs
- Perspective.cs
- FontSourceCollection.cs
- CancellationToken.cs
- StatusBarPanel.cs
- CompiledIdentityConstraint.cs
- GridViewDesigner.cs
- PreservationFileWriter.cs
- QEncodedStream.cs
- BooleanAnimationUsingKeyFrames.cs
- TimelineGroup.cs
- LabelEditEvent.cs
- FontDriver.cs
- ExpressionNormalizer.cs
- ServiceElementCollection.cs
- WS2007FederationHttpBindingCollectionElement.cs
- XmlResolver.cs
- MetafileHeaderEmf.cs
- XmlSchemaValidator.cs
- DataServiceProcessingPipelineEventArgs.cs
- QilStrConcatenator.cs
- AspProxy.cs
- Environment.cs
- CopyAttributesAction.cs
- ConfigurationSchemaErrors.cs
- TabletDevice.cs
- NonSerializedAttribute.cs
- ScrollItemPattern.cs
- Maps.cs
- ReferenceService.cs
- InvokeProviderWrapper.cs
- SafeMemoryMappedFileHandle.cs
- DisplayInformation.cs
- DoubleKeyFrameCollection.cs
- DataBoundControlHelper.cs
- AnimationClockResource.cs
- ProtocolsConfigurationHandler.cs