 | 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.CAEXAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic string Value { get; set; }
Public Property Value As String
Get
Set
public:
property String^ Value {
String^ get ();
void set (String^ value);
}
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:
TimeSpan processingTime = new TimeSpan(days: 0, hours: 0, minutes: 0, seconds: 5);
AttributeType at = ReadMyAttribute ();
at["Value"] = processingTime;
at["DefaultValue"] = new TimeSpan(0);
if (at.ValueAttributes[0].TypeCodeOfAttribute == System.Xml.Schema.XmlTypeCode.Duration)
{
}
See Also