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

AF SDK Reference

AFContact.GetCurrentUser Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFContact.GetCurrentUser Method
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: AFContact
The 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.

Version Information

AFSDK


See Also

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