Compartir a través de


ConnectionSettings.ConnectAsUserPassword Propiedad

Gets or sets the password for the user when connecting using impersonation.

Espacio de nombres:  Microsoft.SqlServer.Management.Common
Ensamblado:  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxis

'Declaración
Public Property ConnectAsUserPassword As String 
    Get 
    Set
'Uso
Dim instance As ConnectionSettings 
Dim value As String 

value = instance.ConnectAsUserPassword

instance.ConnectAsUserPassword = value
public string ConnectAsUserPassword { get; set; }
public:
property String^ ConnectAsUserPassword {
    String^ get ();
    void set (String^ value);
}
member ConnectAsUserPassword : string with get, set
function get ConnectAsUserPassword () : String 
function set ConnectAsUserPassword (value : String)

Valor de la propiedad

Tipo: System.String
A String value that specifies the user password used when the connection is established using impersonation of a user.

Comentarios

If the ConnectAsUser property is set to True, the ConnectAsUserName property and the ConnectAsUserPassword property are used to acquire credentials for impersonation. Any subsequent connection is made with the credentials of the specified user, and the LoginSecure property, the Login property, and the Password property are ignored.

Vea también

Referencia

ConnectionSettings Clase

Espacio de nombres Microsoft.SqlServer.Management.Common