Click or drag to resize

AttributeTypeTypeValue Property

Gets and sets the Value for this Attribute object. The correct XML-String representation for the defined AttributeDataType has to be ensured by the caller.

Namespace: Aml.Engine.CAEX
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public string Value { get; set; }

Property Value

String
Remarks
It is possible to use the Indexer ItemString to set a type based value which is correctly encoded/decoded according to the specified AttributeDataType or use the property AttributeValue, which provides the same value access.
Example
This sample shows how to use this property:
C#
 // setting a TimeSpan value if the AttributeDataType is defined as 'xs:Duration'.
 TimeSpan processingTime = new TimeSpan(days: 0, hours: 0, minutes: 0, seconds: 5);

 AttributeType at = ReadMyAttribute ();
 at["Value"] = processingTime;
 at["DefaultValue"] = new TimeSpan(0);

// checking the appropriate type setting:
if (at.ValueAttributes[0].TypeCodeOfAttribute == System.Xml.Schema.XmlTypeCode.Duration)
{
}
See Also