Class TaskElementCollection
Represents collection of TaskElement elements in the application configuration.
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 |
|---|---|
| Boolean |
Methods
CreateNewElement()
Creates new instance of TaskElement.
Declaration
protected override ConfigurationElement CreateNewElement()
Returns
| Type | Description |
|---|---|
| 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 |
|---|---|---|
| ConfigurationElement | element | The ConfigurationElement to return the key for. |
Returns
| Type | Description |
|---|---|
| Object | An object that acts as the key for the specified ConfigurationElement. |
Overrides
Nevatech.Vsb.Repository.Configuration.ConfigurationElementCollectionBase<Nevatech.Vsb.Agent.Configuration.TaskElement>.GetElementKey(System.Configuration.ConfigurationElement)
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown, if the specified element is a null reference. |
| ArgumentException | Thrown, if the specified element is of wrong type. |