//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ using System; using System.Configuration; namespace System.Workflow.Runtime.Configuration { /// Collection of WorkflowRuntimeServiceSettings used by WorkflowRuntimeSection [Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")] 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); } } }