Class TaskElement
Represents configuration of a task.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Configuration
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class TaskElement : ConfigurationElement
Constructors
TaskElement()
Declaration
public TaskElement()
Properties
Name
Gets or sets the element's name. The name must be unique within configuration element collection.
Declaration
[ConfigurationProperty("name")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
| Type | Description |
|---|---|
| ConfigurationPropertyCollection |
Overrides
TypeName
Gets or sets fully qualified task type name.
Declaration
[ConfigurationProperty("type")]
public string TypeName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
OnDeserializeUnrecognizedElement(string, XmlReader)
Called when an unknown element is encountered while deserializing the ConfigurationElement object.
Declaration
protected override bool OnDeserializeUnrecognizedElement(string elementName, XmlReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| string | elementName | The name of the unknown sub-element. |
| XmlReader | reader | The XmlReader being used for deserialization. |
Returns
| Type | Description |
|---|---|
| bool | True when an unknown element is encountered while deserializing; otherwise, false. This method always returns true. |
Overrides
Remarks
See OnDeserializeUnrecognizedElement(string, XmlReader) method for more information.
SerializeElement(XmlWriter, bool)
Writes the contents of this configuration element to the configuration file. See SerializeElement(XmlWriter, bool) method for more information.
Declaration
protected override bool SerializeElement(XmlWriter writer, bool serializeCollectionKey)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlWriter | writer | The XmlWriter that writes to the configuration file. |
| bool | serializeCollectionKey | true to serialize only the collection key properties; otherwise, false. |
Returns
| Type | Description |
|---|---|
| bool | True if any data was actually serialized; otherwise, false. |