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
- BasePattern.cs
- SerialPort.cs
- UnmanagedBitmapWrapper.cs
- WebConfigurationManager.cs
- SqlRowUpdatingEvent.cs
- MeshGeometry3D.cs
- GorillaCodec.cs
- QilVisitor.cs
- ECDsaCng.cs
- ExpandCollapseProviderWrapper.cs
- DataStorage.cs
- NCryptNative.cs
- Bidi.cs
- CompositeScriptReferenceEventArgs.cs
- TemplatedEditableDesignerRegion.cs
- ToolStrip.cs
- StylusPointCollection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- CustomAttributeBuilder.cs
- TextCompositionManager.cs
- EntityContainer.cs
- StylusPoint.cs
- GeneralTransform.cs
- ToolStripItemTextRenderEventArgs.cs
- ErrorRuntimeConfig.cs
- ListControlDesigner.cs
- DoubleCollection.cs
- HttpCachePolicy.cs
- KeyboardEventArgs.cs
- PenCursorManager.cs
- ProviderConnectionPoint.cs
- NativeMethods.cs
- WebPartsPersonalizationAuthorization.cs
- HttpContextServiceHost.cs
- ElementNotEnabledException.cs
- ArrangedElementCollection.cs
- RenderOptions.cs
- XPathBinder.cs
- TdsParserStaticMethods.cs
- UrlMappingsModule.cs
- DataServiceClientException.cs
- ConnectionProviderAttribute.cs
- AsymmetricSignatureDeformatter.cs
- VariantWrapper.cs
- MenuAutoFormat.cs
- CodeAssignStatement.cs
- ButtonBase.cs
- LassoHelper.cs
- XmlKeywords.cs
- WorkflowDesigner.cs
- ContextConfiguration.cs
- MetadataException.cs
- HandlerMappingMemo.cs
- FixedSOMContainer.cs
- GridViewCellAutomationPeer.cs
- SecurityTokenSpecification.cs
- XmlSerializationWriter.cs
- LineServices.cs
- SemanticResolver.cs
- contentDescriptor.cs
- ConfigurationSectionGroup.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- HostingPreferredMapPath.cs
- Positioning.cs
- FileEnumerator.cs
- ConfigDefinitionUpdates.cs
- JapaneseLunisolarCalendar.cs
- LateBoundChannelParameterCollection.cs
- Marshal.cs
- sqlstateclientmanager.cs
- SocketElement.cs
- hebrewshape.cs
- SymLanguageType.cs
- CodeTypeReferenceSerializer.cs
- OleStrCAMarshaler.cs
- MetadataArtifactLoaderFile.cs
- MailWriter.cs
- MulticastOption.cs
- XDRSchema.cs
- DataGridViewRowCancelEventArgs.cs
- RegexWorker.cs
- SelectionList.cs
- ContextMarshalException.cs
- HtmlInputReset.cs
- NativeMethods.cs
- ChannelBinding.cs
- UtilityExtension.cs
- SByteStorage.cs
- HideDisabledControlAdapter.cs
- CharAnimationUsingKeyFrames.cs
- View.cs
- WebBaseEventKeyComparer.cs
- EventHandlerList.cs
- VerificationAttribute.cs
- PeerName.cs
- SourceFileInfo.cs
- FtpCachePolicyElement.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- TextPointer.cs
- Parameter.cs