AFDataReference.GetAttribute Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
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.2.0.7
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: AFAttributeThe attribute retrieved by applying the specified name to the target.