Class TaskElementCollection
Represents collection of TaskElement elements in the application configuration.
Implements
System.Collections.Generic.IList<TaskElement>
System.Collections.Generic.ICollection<TaskElement>
System.Collections.Generic.IEnumerable<TaskElement>
System.Collections.IEnumerable
Inherited Members
Namespace: Nevatech.Vsb.Agent.Configuration
Assembly: Nevatech.Vsb.Agent.dll
Syntax
public sealed class TaskElementCollection : ConfigurationElementCollectionBase<TaskElement>, IList<TaskElement>, ICollection<TaskElement>, IEnumerable<TaskElement>, IEnumerable
Constructors
TaskElementCollection()
Declaration
public TaskElementCollection()
Properties
SaveOnExit
Gets or sets flag indicating that tasks configuration has to be saved when agent process is closed.
Declaration
public bool SaveOnExit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CreateNewElement()
Creates new instance of TaskElement.
Declaration
protected override ConfigurationElement CreateNewElement()
Returns
Type | Description |
---|---|
System.Configuration.ConfigurationElement | Not initialized instance of TaskElement class. |
GetElementKey(ConfigurationElement)
Gets the element key for a specified configuration element.
Declaration
protected override object GetElementKey(ConfigurationElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Configuration.ConfigurationElement | element | The System.Configuration.ConfigurationElement to return the key for. |
Returns
Type | Description |
---|---|
System.Object | An object that acts as the key for the specified System.Configuration.ConfigurationElement. |
Overrides
Nevatech.Vsb.Repository.Configuration.ConfigurationElementCollectionBase<Nevatech.Vsb.Agent.Configuration.TaskElement>.GetElementKey(System.Configuration.ConfigurationElement)
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown, if the specified element is a null reference. |
System.ArgumentException | Thrown, if the specified element is of wrong type. |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable