AFAttribute.FindAttributes Method
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Finds a list of AFAttribute objects identified by the path, relative from the specified object.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static IList<AFAttribute> FindAttributes( string path, AFObject relativeFrom )
Public Shared Function FindAttributes ( path As String, relativeFrom As AFObject ) As IList(Of AFAttribute) Dim path As String Dim relativeFrom As AFObject Dim returnValue As IList(Of AFAttribute) returnValue = AFAttribute.FindAttributes(path, relativeFrom)
public: static IList<AFAttribute^>^ FindAttributes( String^ path, AFObject^ relativeFrom )
static member FindAttributes : path : string * relativeFrom : AFObject -> IList<AFAttribute>
Parameters
- path
- Type: SystemString
A string containing a pathname that is relative to the specified AFAttribute, or a fully qualified path. See Path Syntax for more information. - relativeFrom
- Type: OSIsoft.AFAFObject
Specifies the object that the path was retrieved from. The query date of this object will be used where applicable.
Return Value
Type: IListAFAttributeReturns a list ofAFAttribute objects identified by the path, relative from the specified object.
Remarks
A path to the AFAttribute can be obtained by calling one of the GetPath Overload methods.
This method is similar to the FindObject(String) method, but will only resolve object paths to an AFAttribute. When the path only indicates a path to an element, this routine will return the DefaultAttribute of that element. See Path Syntax for a complete description of the path syntax.
| If the specified path is a dynamic PIPoint path, this method will validate that the PIPoint exists. The AFAttribute(AFDatabase, String) constructor with a path parameter will not validate that the PIPoint exists. |
| The ShowExcludedAttributes setting will determine if excluded attributes are returned when finding attributes by path. |
Version Information
AFSDK
Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6
See Also
Reference
AFAttributeFindAttributes(String, AFObject)