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

AF SDK Reference

AFDataReference.GetAttribute Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDataReference.GetAttribute Method
Retrieve the attribute for the specified name relative to the attribute in this Data Reference.

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

Syntax

public AFAttribute GetAttribute(
	string name
)
Public Function GetAttribute ( 
	name As String
) As AFAttribute

Dim instance As AFDataReference
Dim name As String
Dim returnValue As AFAttribute

returnValue = instance.GetAttribute(name)
public:
AFAttribute^ GetAttribute(
	String^ name
)
member GetAttribute : 
        name : string -> AFAttribute 

Parameters

name
Type: SystemString
The name of that attribute to retrieve from the target.

Return Value

Type: AFAttribute
The attribute retrieved by applying the specified name to the target.

Version Information

AFSDK


See Also

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