AFElement.FindElement Method (PISystem, Guid, Guid)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves the AFElement object with the specified unique identifier
and the specified version id.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFElement FindElement( PISystem system, Guid id, Guid versionID )
Public Shared Function FindElement ( system As PISystem, id As Guid, versionID As Guid ) As AFElement Dim system As PISystem Dim id As Guid Dim versionID As Guid Dim returnValue As AFElement returnValue = AFElement.FindElement(system, id, versionID)
public: static AFElement^ FindElement( PISystem^ system, Guid id, Guid versionID )
static member FindElement : system : PISystem * id : Guid * versionID : Guid -> AFElement
Parameters
- system
- Type: OSIsoft.AFPISystem
The PISystem to search for the desired object. - id
- Type: SystemGuid
The unique identifier of the object to find. - versionID
- Type: SystemGuid
The unique identifier of the specific version to find.
Return Value
Type: AFElementThe AFElement in the PISystem which matches the unique identifier and version identifier.
Remarks
The AFElement object with the specified id
and the specified versionID is returned. The query date of the
returned object will automatically be set so that it falls within the specified version.