Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFAttribute.Description Property

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFAttribute.Description Property
Read/write property that provides a more detailed description of the object.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public string Description { get; set; }
Public Property Description As String
	Get
	Set

Dim instance As AFAttribute
Dim value As String

value = instance.Description

instance.Description = value
public:
virtual property String^ Description {
	String^ get () sealed;
	void set (String^ value) sealed;
}
abstract Description : string with get, set
override Description : string with get, set

Property Value

Type: String
The detailed description of the object. The maximum length of this property is 1000 characters.

Implements

IAFAttributeDescription

Exceptions

ExceptionCondition
InvalidOperationException This exception will be thrown if this attribute was created from an AFAttributeTemplate and the server does not support overriding the attribute's description.

Remarks

The attribute's description can be modified if it is not defined by an AFAttributeTemplate or the server supports overriding a description defined by a template. You can call the Supports(PISystemFeatures) method to determine if the ModifyAttributeDescription feature is supported by the server.

Caution note Caution
Caution should be used when overriding the description defined by the template because it increases the memory requirement for each attribute.

If this attribute was created from an AFAttributeTemplate, then the value of this property is defined by the template's Description unless it is modified to be different from the template value. When the value is defined by a template, then changing the template's Description property will also change the value of this property of the AFAttribute.

Important note Important
If the attribute was created from an AFAttributeTemplate and the description was overridden, then setting the value of this property to be the same as the template's value or an empty string will reset it back to being defined by the template's value. Calling ResetToTemplate can also be used to reset all settings back to the template default values.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in