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
- PageStatePersister.cs
- TimeSpanMinutesConverter.cs
- WindowsListViewGroupSubsetLink.cs
- WindowsNonControl.cs
- TraceSource.cs
- EnterpriseServicesHelper.cs
- ComponentEditorForm.cs
- ToolBarButtonClickEvent.cs
- ReferenceConverter.cs
- EditingCoordinator.cs
- CounterSampleCalculator.cs
- PagerSettings.cs
- Dynamic.cs
- Publisher.cs
- MsmqActivation.cs
- RankException.cs
- AppDomainFactory.cs
- ErrorFormatter.cs
- StorageInfo.cs
- ICollection.cs
- PtsHost.cs
- ToolStripComboBox.cs
- TableRowCollection.cs
- KoreanCalendar.cs
- ShapingWorkspace.cs
- PolyBezierSegment.cs
- ResourceDescriptionAttribute.cs
- WebServicesDescriptionAttribute.cs
- BookmarkScopeInfo.cs
- PageAsyncTask.cs
- Facet.cs
- DataGridViewColumnHeaderCell.cs
- ToolStripDropDown.cs
- BindingContext.cs
- FrameworkElement.cs
- NameNode.cs
- StateManagedCollection.cs
- Sequence.cs
- TextShapeableCharacters.cs
- CompiledQueryCacheKey.cs
- XomlCompilerHelpers.cs
- DrawingContextWalker.cs
- Pair.cs
- IIS7UserPrincipal.cs
- GridViewDeleteEventArgs.cs
- ArrangedElementCollection.cs
- NameValuePermission.cs
- EntityEntry.cs
- SafeNativeMethods.cs
- ObjectDataSourceFilteringEventArgs.cs
- GlobalEventManager.cs
- ResourceSet.cs
- FilteredSchemaElementLookUpTable.cs
- TextEditorTyping.cs
- UrlMapping.cs
- XmlDataCollection.cs
- LinkedResourceCollection.cs
- SegmentInfo.cs
- PropertyGridEditorPart.cs
- FontFamilyIdentifier.cs
- ConnectionManagementElementCollection.cs
- GetCertificateRequest.cs
- WebServiceResponseDesigner.cs
- DataGridColumn.cs
- ConfigurationStrings.cs
- CustomPopupPlacement.cs
- AssemblyHash.cs
- ClientSideProviderDescription.cs
- CqlQuery.cs
- TraceListeners.cs
- WinFormsComponentEditor.cs
- ApplicationSecurityInfo.cs
- ObservableCollection.cs
- ErrorFormatterPage.cs
- AccessibilityApplicationManager.cs
- EndpointInfo.cs
- XmlSchemaSearchPattern.cs
- SqlMetaData.cs
- AsymmetricKeyExchangeDeformatter.cs
- HashHelper.cs
- RbTree.cs
- Request.cs
- CodeExpressionStatement.cs
- loginstatus.cs
- WebPartEditorOkVerb.cs
- WorkItem.cs
- FixedPageStructure.cs
- HtmlTableRow.cs
- CodePageEncoding.cs
- ToolStripLabel.cs
- BitmapEffectGeneralTransform.cs
- DataGridItem.cs
- InheritanceContextChangedEventManager.cs
- XDRSchema.cs
- SafeTokenHandle.cs
- XsdDataContractImporter.cs
- PreviewPageInfo.cs
- LinqDataSourceEditData.cs
- IPAddress.cs
- TypedElement.cs