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
- NameNode.cs
- ConnectionPoint.cs
- ProtocolsConfiguration.cs
- ResourceIDHelper.cs
- TextBox.cs
- HostVisual.cs
- CalloutQueueItem.cs
- AuthorizationContext.cs
- PermissionSet.cs
- ColorContext.cs
- SelectionListDesigner.cs
- OlePropertyStructs.cs
- ExecutedRoutedEventArgs.cs
- SamlSubject.cs
- InputLanguageEventArgs.cs
- DataControlReferenceCollection.cs
- SqlFunctionAttribute.cs
- httpserverutility.cs
- IncrementalReadDecoders.cs
- ClientApiGenerator.cs
- SqlLiftIndependentRowExpressions.cs
- PlatformCulture.cs
- UrlMappingsModule.cs
- ThreadAbortException.cs
- ResourcePermissionBaseEntry.cs
- ObjectManager.cs
- CodeDefaultValueExpression.cs
- Operand.cs
- ImageSource.cs
- RegexMatch.cs
- Funcletizer.cs
- EmbeddedMailObjectsCollection.cs
- coordinatorfactory.cs
- AnonymousIdentificationSection.cs
- ObjectRef.cs
- NavigationService.cs
- OracleTransaction.cs
- ShimAsPublicXamlType.cs
- TabRenderer.cs
- Sql8ExpressionRewriter.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- ParsedAttributeCollection.cs
- PEFileReader.cs
- ZipIOLocalFileDataDescriptor.cs
- ZipIOFileItemStream.cs
- x509utils.cs
- PerformanceCounter.cs
- embossbitmapeffect.cs
- DataStorage.cs
- StrongNameKeyPair.cs
- NameValueSectionHandler.cs
- ClientEventManager.cs
- PersonalizableTypeEntry.cs
- PeerContact.cs
- PlainXmlSerializer.cs
- StructuredTypeEmitter.cs
- SamlAssertionKeyIdentifierClause.cs
- WeakEventManager.cs
- RowParagraph.cs
- FilterUserControlBase.cs
- Positioning.cs
- CheckBoxField.cs
- InternalConfigHost.cs
- ImageAnimator.cs
- _NtlmClient.cs
- SafeNativeMethods.cs
- OperationContext.cs
- FormViewUpdateEventArgs.cs
- ToolStripMenuItemCodeDomSerializer.cs
- _ScatterGatherBuffers.cs
- TextServicesHost.cs
- SerialPinChanges.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- WizardForm.cs
- ScaleTransform3D.cs
- InputProviderSite.cs
- Schema.cs
- SchemaNotation.cs
- PKCS1MaskGenerationMethod.cs
- SuppressIldasmAttribute.cs
- SingleSelectRootGridEntry.cs
- BulletChrome.cs
- WeakReferenceKey.cs
- WrappedIUnknown.cs
- TextEditor.cs
- ProfilePropertySettingsCollection.cs
- InsufficientMemoryException.cs
- PropertyPath.cs
- BinaryMessageFormatter.cs
- Timer.cs
- TextEditorDragDrop.cs
- SID.cs
- MultilineStringConverter.cs
- dataSvcMapFileLoader.cs
- ObjectAnimationBase.cs
- Range.cs
- UrlPath.cs
- WebPartDisplayModeCollection.cs
- PageThemeParser.cs