Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / RunTime / Configuration / WorkflowRuntimeServiceElementCollection.cs / 1305376 / WorkflowRuntimeServiceElementCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Configuration;
namespace System.Workflow.Runtime.Configuration
{
/// Collection of WorkflowRuntimeServiceSettings used by WorkflowRuntimeSection
public class WorkflowRuntimeServiceElementCollection : ConfigurationElementCollection
{
/// Creates a new WorkflowRuntimeServiceSettings object
/// An empty WorkflowRuntimeServiceSettings
protected override ConfigurationElement CreateNewElement()
{
return new WorkflowRuntimeServiceElement();
}
/// Returns the Type of the WorkflowRuntimeServiceSettings object
/// The WorkflowRuntimeServiceSettings
/// The Type name of the WorkflowRuntimeServiceSettings
protected override object GetElementKey(ConfigurationElement settings)
{
return ((WorkflowRuntimeServiceElement)settings).Type;
}
/// Adds a WorkflowRuntimeServiceSettings object to this collection
/// The settings object to add
public void Add(WorkflowRuntimeServiceElement serviceSettings)
{
if (serviceSettings == null)
throw new ArgumentNullException("serviceSettings");
base.BaseAdd(serviceSettings);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Configuration;
namespace System.Workflow.Runtime.Configuration
{
/// Collection of WorkflowRuntimeServiceSettings used by WorkflowRuntimeSection
public class WorkflowRuntimeServiceElementCollection : ConfigurationElementCollection
{
/// Creates a new WorkflowRuntimeServiceSettings object
/// An empty WorkflowRuntimeServiceSettings
protected override ConfigurationElement CreateNewElement()
{
return new WorkflowRuntimeServiceElement();
}
/// Returns the Type of the WorkflowRuntimeServiceSettings object
/// The WorkflowRuntimeServiceSettings
/// The Type name of the WorkflowRuntimeServiceSettings
protected override object GetElementKey(ConfigurationElement settings)
{
return ((WorkflowRuntimeServiceElement)settings).Type;
}
/// Adds a WorkflowRuntimeServiceSettings object to this collection
/// The settings object to add
public void Add(WorkflowRuntimeServiceElement serviceSettings)
{
if (serviceSettings == null)
throw new ArgumentNullException("serviceSettings");
base.BaseAdd(serviceSettings);
}
}
}
// 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
- ElementHostAutomationPeer.cs
- ElementFactory.cs
- DataGridViewUtilities.cs
- ToolboxSnapDragDropEventArgs.cs
- ZipIOFileItemStream.cs
- SQLByte.cs
- ChunkedMemoryStream.cs
- UnsafeNativeMethods.cs
- VariantWrapper.cs
- CryptoStream.cs
- ApplicationServiceManager.cs
- SynchronizationLockException.cs
- EncodedStreamFactory.cs
- XslAst.cs
- DispatcherProcessingDisabled.cs
- CompositeKey.cs
- FrameworkElementAutomationPeer.cs
- Rotation3DAnimation.cs
- EventBindingService.cs
- ConfigurationProperty.cs
- ProcessModule.cs
- ArgumentOutOfRangeException.cs
- TraceHwndHost.cs
- TableCell.cs
- DynamicValidatorEventArgs.cs
- MetadataCache.cs
- WpfXamlMember.cs
- FormViewPageEventArgs.cs
- XmlReflectionMember.cs
- SecurityMode.cs
- BamlLocalizationDictionary.cs
- InvalidAsynchronousStateException.cs
- InterleavedZipPartStream.cs
- Point.cs
- SoapTypeAttribute.cs
- COM2FontConverter.cs
- ParameterCollection.cs
- ImageSource.cs
- BadImageFormatException.cs
- CalendarKeyboardHelper.cs
- GroupQuery.cs
- PropertyBuilder.cs
- QilTypeChecker.cs
- ReadOnlyDataSourceView.cs
- WorkflowShape.cs
- SqlDependency.cs
- XmlSerializerOperationFormatter.cs
- PeerNameRecordCollection.cs
- NativeCompoundFileAPIs.cs
- X509Extension.cs
- Binding.cs
- OlePropertyStructs.cs
- PerformanceCounterLib.cs
- QilTernary.cs
- securitymgrsite.cs
- HtmlShim.cs
- MetadataItemSerializer.cs
- X509SecurityToken.cs
- InputMethod.cs
- IpcManager.cs
- ApplicationSecurityInfo.cs
- Matrix3DConverter.cs
- CodeSnippetExpression.cs
- NonVisualControlAttribute.cs
- AnimationClockResource.cs
- ProtocolsConfigurationHandler.cs
- WebPartMovingEventArgs.cs
- CodeTypeReferenceCollection.cs
- EtwTrace.cs
- AlignmentYValidation.cs
- HttpException.cs
- SqlError.cs
- SubMenuStyleCollectionEditor.cs
- ObjectSelectorEditor.cs
- CheckBox.cs
- DesignerRegionMouseEventArgs.cs
- EmptyCollection.cs
- XmlAnyElementAttribute.cs
- WebPartDisplayModeCollection.cs
- XmlLinkedNode.cs
- CodeTypeDelegate.cs
- XamlPathDataSerializer.cs
- Literal.cs
- LinqDataSourceEditData.cs
- SplitContainer.cs
- ToolboxItemLoader.cs
- XmlEventCache.cs
- RemoteWebConfigurationHost.cs
- TableStyle.cs
- Automation.cs
- __ConsoleStream.cs
- ContractUtils.cs
- CodeCatchClauseCollection.cs
- EFTableProvider.cs
- XmlAnyAttributeAttribute.cs
- CodeCatchClause.cs
- EventlogProvider.cs
- ListMarkerLine.cs
- SafeNativeMethods.cs
- XmlTextWriter.cs