GetCurrentUser Method
See Also 
SourceCode.Authorization.Client Namespace > AuthorizationClient Class : GetCurrentUser Method



Glossary Item Box

Returns the current user name.

Syntax

Visual Basic (Declaration) 
Public Function GetCurrentUser() As String
Visual Basic (Usage)Copy Code
Dim instance As AuthorizationClient
Dim value As String
 
value = instance.GetCurrentUser()
C# 
public string GetCurrentUser()
C++/CLI 
public:
String^ GetCurrentUser(); 

Return Value

The name of the current user.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also