Click or drag to resize
OSIsoft, LLC

AFAttributeType Property

This property specifies the type of the attribute's value.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public Type Type { get; set; }

Property Value

Type: Type
Specifies the type of the attribute's value.

Implements

IAFAttributeType
Exceptions
ExceptionCondition
InvalidOperationException This exception is thrown when attempting to set this property when the value of the property is defined by its template.
ArgumentNullException This exception is thrown when attempting to set this property to .
Remarks

This property is a System.Type that specifies the type of the attribute's value. If the type is Object (which is the default value), then the value can be any valid object.

If a DefaultUOM has been specified, then the Type can only be changed to a numeric type or an array of numeric types.

For some value types, a further qualification can be provided in the TypeQualifier property. Integers and strings can be qualified with an AFEnumerationSet. A value type of AFEnumerationValue can be qualified by an AFEnumerationSet.

Values with an IsGood status of accessed through the GetValue Overload and SetValue Overload methods will be converted to this type.

For more information and a list of supported types, see the documentation for AFAttributeTemplate.

If this attribute was created from an AFAttributeTemplate, then the value of this property is defined by the template and cannot be changed. In this case, changing the AFAttributeTemplate.Type property also changes the value of this property. If the attribute was NOT created from a template, then this property can be modified.

Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
See Also