Compartir a través de


WmiConnectionInfo.Username Propiedad

Gets the name of the account used to establish the connection.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Wmi
Ensamblado:  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxis

'Declaración
Public Property Username As String 
    Get 
    Set
'Uso
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)

Valor de la propiedad

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

Ejemplos

Administrar servicios y configuración de red utilizando el proveedor WMI

Vea también

Referencia

WmiConnectionInfo Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo.Wmi

Otros recursos

WMI and SQL Server

Conectar al Motor de base de datos de SQL Server