AFDataReference.GetAttribute Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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.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: AFAttributeThe attribute retrieved by applying the specified name to the target.