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
- DisableDpiAwarenessAttribute.cs
- FormDocumentDesigner.cs
- Attribute.cs
- OleDbCommandBuilder.cs
- BackgroundWorker.cs
- FileRecordSequenceHelper.cs
- MessageQueueException.cs
- WeakEventTable.cs
- Identity.cs
- Inline.cs
- WebPartActionVerb.cs
- SupportedAddressingMode.cs
- AnnotationResourceChangedEventArgs.cs
- XpsImage.cs
- _LoggingObject.cs
- FileVersion.cs
- IHttpResponseInternal.cs
- ListControlConvertEventArgs.cs
- XamlGridLengthSerializer.cs
- Mutex.cs
- Queue.cs
- InlineCollection.cs
- StrokeRenderer.cs
- BrowsableAttribute.cs
- CqlLexer.cs
- Interlocked.cs
- MenuAdapter.cs
- PartitionResolver.cs
- SqlCacheDependency.cs
- XmlAttributeCache.cs
- AutomationElementIdentifiers.cs
- SQLStringStorage.cs
- OleServicesContext.cs
- AutoResetEvent.cs
- GlyphCache.cs
- MessagePropertyFilter.cs
- XmlChildNodes.cs
- CommonServiceBehaviorElement.cs
- SiteMapNodeCollection.cs
- updatecommandorderer.cs
- HttpModuleActionCollection.cs
- XmlDataProvider.cs
- RijndaelCryptoServiceProvider.cs
- Number.cs
- DesigntimeLicenseContextSerializer.cs
- PhysicalAddress.cs
- ItemCollection.cs
- StickyNoteHelper.cs
- EntityClassGenerator.cs
- WpfSharedXamlSchemaContext.cs
- ReaderContextStackData.cs
- AlignmentXValidation.cs
- XmlWrappingWriter.cs
- DragDropHelper.cs
- DataGridViewColumnConverter.cs
- ListSortDescription.cs
- NullableLongAverageAggregationOperator.cs
- HtmlElementErrorEventArgs.cs
- TemplateParser.cs
- OneOfScalarConst.cs
- GroupByQueryOperator.cs
- PointUtil.cs
- SubpageParaClient.cs
- ExpressionBuilderContext.cs
- MetadataException.cs
- VerbConverter.cs
- SecureUICommand.cs
- TraceSection.cs
- ServicePointManagerElement.cs
- Material.cs
- PageSetupDialog.cs
- SingleObjectCollection.cs
- SpecialNameAttribute.cs
- FixedSOMTableRow.cs
- MethodBody.cs
- EdgeModeValidation.cs
- ItemDragEvent.cs
- SmtpClient.cs
- FactoryGenerator.cs
- SaveFileDialog.cs
- Part.cs
- ConstantCheck.cs
- DictionaryContent.cs
- Visual.cs
- ContextProperty.cs
- IdentityModelDictionary.cs
- TransformerTypeCollection.cs
- EntityParameter.cs
- ArrangedElementCollection.cs
- PassportAuthenticationEventArgs.cs
- __ComObject.cs
- HttpRequestCacheValidator.cs
- SessionStateModule.cs
- HttpCachePolicyElement.cs
- AddressAlreadyInUseException.cs
- ProfilePropertySettings.cs
- MultiSelector.cs
- SqlParameter.cs
- IProducerConsumerCollection.cs
- DockPatternIdentifiers.cs