UserHelpers.CurrentLoggedOnUserName Property
Gets the user name for the current logged-on user. If it fails, the property returns null.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static string CurrentLoggedOnUserName { get; }
public:
property String^ CurrentLoggedOnUserName {
static String^ get();
}
Public Shared ReadOnly Property CurrentLoggedOnUserName As String
Property Value
Type: System.String
Current logged-on user name. This property can be null if no user is logged on or if there is a failure retrieving the user name.
See Also
UserHelpers Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top