ResultObjectHelpers.CurrentUserName Method
Gets the name of the current user.
Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)
Usage
'Usage
Dim connectionManager As ConnectionManagerBase
Dim returnValue As String
returnValue = ResultObjectHelpers.CurrentUserName(connectionManager)
Syntax
'Declaration
Public Shared Function CurrentUserName ( _
connectionManager As ConnectionManagerBase _
) As String
public static string CurrentUserName (
ConnectionManagerBase connectionManager
)
public:
static String^ CurrentUserName (
ConnectionManagerBase^ connectionManager
)
public static String CurrentUserName (
ConnectionManagerBase connectionManager
)
public static function CurrentUserName (
connectionManager : ConnectionManagerBase
) : String
Parameters
- connectionManager
[in] ConnectionManagerBase object.
Return Value
Current user name.
Remarks
Exception type | Condition |
---|---|
The connectionManager parameter cannot be null. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2003,Windows Vista
See Also
Reference
ResultObjectHelpers Class
ResultObjectHelpers Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
ConnectionManagerBase