AFContact.GetCurrentUser Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Retrieves the AFContact object for the current user.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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.