Partilhar via


Propriedade do RDL WmiConnectionInfo.Username

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

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (em Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxe

'Declaração
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 da propriedade

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

Exemplos

Gerenciando serviços e configurações de rede através do provedor do WMI

Consulte também

Referência

WmiConnectionInfo Classe

Namespace Microsoft.SqlServer.Management.Smo.Wmi

Outros recursos

WMI and SQL Server

Conectando ao Mecanismo de Banco de Dados do SQL Server