WmiConnectionInfo.Username Property
Gets the name of the account used to establish the connection.
Namespace: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)
Syntax
'Declaration
Public Property Username As String
Get
Set
'Usage
Dim instance As WmiConnectionInfo
Dim value As String
value = instance.Username
instance.Username = value
public string Username { get; set; }
public:
property String^ Username {
String^ get ();
void set (String^ value);
}
member Username : string with get, set
function get Username () : String
function set Username (value : String)
Property Value
Type: System.String
A String value that specifies the name of the account used to establish the connection.
Examples
Managing Services and Network Settings by Using WMI Provider
See Also
Reference
Microsoft.SqlServer.Management.Smo.Wmi Namespace