Class TaskElementCollection
Represents collection of TaskElement elements in the application configuration.
Inheritance
TaskElementCollection
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Configuration
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[ConfigurationCollection(typeof(TaskElementCollection), AddItemName = "task")]
public sealed class TaskElementCollection : ConfigurationElementCollectionBase<TaskElement>, ICollection, 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
[ConfigurationProperty("saveOnExit", DefaultValue = false)]
public bool SaveOnExit { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CreateNewElement()
Creates new instance of TaskElement.
Declaration
protected override ConfigurationElement CreateNewElement()
Returns
| Type | Description |
|---|---|
| ConfigurationElement | Not initialized instance of TaskElement class. |
Overrides
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
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown, if the specified element is a null reference. |
| ArgumentException | Thrown, if the specified element is of wrong type. |