Freigeben über


WmiConnectionInfo.Username-Eigenschaft

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)

Eigenschaftswert

Typ: System.String
A String value that specifies the name of the account used to establish the connection.

Beispiele

Verwalten von Diensten und Netzwerkeinstellungen durch die Nutzung von WMI-Anbieter

Siehe auch

Verweis

WmiConnectionInfo Klasse

Microsoft.SqlServer.Management.Smo.Wmi-Namespace

Andere Ressourcen

WMI and SQL Server

Herstellen einer Verbindung zum SQL Server-Datenbankmodul