[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Get the current logged on user's user name, if fails, return null.

Namespace:  Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

                 
  C#     Visual Basic     Visual C++  
public 
static 
string 
CurrentLoggedOnUserName { 
get; }
Public 
Shared 
ReadOnly 
Property 
CurrentLoggedOnUserName 
As 
String
	
Get
public:
static 
property 
String^ 
CurrentLoggedOnUserName {
	
String^ 
get ();
}

Return Value

Current logged on username, can be null if no user is logged on or if there's a failure retrieving the username

See Also