Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFElement.FindElement Method (PISystem, Guid, Guid)

AFElement.FindElement Method (PISystem, Guid, Guid)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElement.FindElement Method (PISystem, Guid, Guid)
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: AFElement
The 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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in