AFAttributeTrait.FindAttributeTrait Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Finds the AFAttributeTrait from the specified name.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public static AFAttributeTrait FindAttributeTrait( string name )
Public Shared Function FindAttributeTrait ( name As String ) As AFAttributeTrait Dim name As String Dim returnValue As AFAttributeTrait returnValue = AFAttributeTrait.FindAttributeTrait(name)
public: static AFAttributeTrait^ FindAttributeTrait( String^ name )
static member FindAttributeTrait : name : string -> AFAttributeTrait
Parameters
- name
- Type: SystemString
The Name or Abbreviation of the desired AFAttributeTrait.
Return Value
Type: AFAttributeTraitReturns the AFAttributeTrait whose Name or Abbreviation match the specified name parameter.