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)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElement.FindElement Method (PISystem, Guid)
Retrieves the AFElement object with the specified unique identifier at the AFTime.MaxValue query date.

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
)
Public Shared Function FindElement ( 
	system As PISystem,
	id As Guid
) As AFElement

Dim system As PISystem
Dim id As Guid
Dim returnValue As AFElement

returnValue = AFElement.FindElement(system, 
	id)
public:
static AFElement^ FindElement(
	PISystem^ system, 
	Guid id
)
static member FindElement : 
        system : PISystem * 
        id : 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.

Return Value

Type: AFElement
The AFElement in the PISystem which matches the unique identifier.

Remarks

The AFElement object with the specified id is returned.

Version Information

AFSDK


See Also

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