Files
mono/mcs/class/referencesource/System.Workflow.Runtime/Configuration/WorkflowRuntimeServiceElementCollection.cs
dotnet-bot 332534dede Adding reference source for part of Workflow Foundation
Adding reference source for
System.Activities
System.Activities.DurableInstancing
System.Activities.Presentation
System.Runtime.DurableInstancing
System.Workflow.Activities
System.Workflow.ComponentModel
System.Workflow.Runtime
System.WorkflowServices
System.Xaml.Hosting
XamlBuildTask
2016-05-03 00:07:54 +02:00

44 lines
1.9 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="WorkflowRuntimeServiceSettingsCollection.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
using System.Configuration;
namespace System.Workflow.Runtime.Configuration
{
/// <summary> Collection of WorkflowRuntimeServiceSettings used by WorkflowRuntimeSection </summary>
[Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class WorkflowRuntimeServiceElementCollection : ConfigurationElementCollection
{
/// <summary> Creates a new WorkflowRuntimeServiceSettings object </summary>
/// <returns> An empty WorkflowRuntimeServiceSettings </returns>
protected override ConfigurationElement CreateNewElement()
{
return new WorkflowRuntimeServiceElement();
}
/// <summary> Returns the Type of the WorkflowRuntimeServiceSettings object </summary>
/// <param name="settings"> The WorkflowRuntimeServiceSettings </param>
/// <returns> The Type name of the WorkflowRuntimeServiceSettings </returns>
protected override object GetElementKey(ConfigurationElement settings)
{
return ((WorkflowRuntimeServiceElement)settings).Type;
}
/// <summary> Adds a WorkflowRuntimeServiceSettings object to this collection </summary>
/// <param name="settings"> The settings object to add </param>
public void Add(WorkflowRuntimeServiceElement serviceSettings)
{
if (serviceSettings == null)
throw new ArgumentNullException("serviceSettings");
base.BaseAdd(serviceSettings);
}
}
}