AFContact.GetCurrentUser Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves the AFContact object for the current user.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFContact GetCurrentUser( PISystem system )
Public Shared Function GetCurrentUser ( system As PISystem ) As AFContact Dim system As PISystem Dim returnValue As AFContact returnValue = AFContact.GetCurrentUser(system)
public: static AFContact^ GetCurrentUser( PISystem^ system )
static member GetCurrentUser : system : PISystem -> AFContact
Parameters
- system
- Type: OSIsoft.AFPISystem
The PISystem to search for the desired contact.
Return Value
Type: AFContactThe AFContact in the PISystem for the current user.
Remarks
The AFContact object for the current user is returned.
If a contact for the current user does not exist, then
will be returned.