Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves a value that indicates the name of the user who initiated the connection.
This property is read-only.
Syntax
HRESULT get_UserName(
[out, retval] BSTR *pVal
);
Property value
A pointer to a user name. When you have finished using the string, free it by calling the SysFreeString function.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client |
None supported |
| Minimum supported server |
Windows Server 2012 |
| IDL |
|