AFCategory.FindCategory Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves the AFCategory object with the specified unique identifier.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFCategory FindCategory( PISystem system, Guid id )
Public Shared Function FindCategory ( system As PISystem, id As Guid ) As AFCategory Dim system As PISystem Dim id As Guid Dim returnValue As AFCategory returnValue = AFCategory.FindCategory(system, id)
public: static AFCategory^ FindCategory( PISystem^ system, Guid id )
static member FindCategory : system : PISystem * id : Guid -> AFCategory
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: AFCategoryThe AFCategory in the PISystem which matches the unique identifier.
Remarks
The AFCategory object with the specified id
is returned. If the object does not exist, then will be returned.