Partilhar via


Propriedade do RDL ConnectionSettings.Password

Gets or sets the password used with the logon to establish a connection with the server when SQL Server Authentication is used.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxe

'Declaração
<BrowsableAttribute(False)> _
Public Property Password As String 
    Get 
    Set
'Uso
Dim instance As ConnectionSettings 
Dim value As String 

value = instance.Password

instance.Password = value
[BrowsableAttribute(false)]
public string Password { get; set; }
[BrowsableAttribute(false)]
public:
property String^ Password {
    String^ get ();
    void set (String^ value);
}
[<BrowsableAttribute(false)>]
member Password : string with get, set
function get Password () : String 
function set Password (value : String)

Valor da propriedade

Tipo: System.String
A String value that specifies the password that is required when you are using SQL Server Authentication.

Comentários

The password property does not require a value when Windows Authentication is used.

Exemplos

Conectando-se a uma instância do SQL Server

Consulte também

Referência

ConnectionSettings Classe

Namespace Microsoft.SqlServer.Management.Common