Udostępnij przez


Właściwość UIConnectionInfo.Password

Ten interfejs API obsługuje infrastrukturę programu i nie jest przeznaczony do użycia bezpośrednio w kodzie.

Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.Pobiera lub ustawia String wartość, która określa hasło logowania dla połączenia przy użyciu uwierzytelniania programu SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.RegSvrEnum
Zestaw:  Microsoft.SqlServer.RegSvrEnum (w Microsoft.SqlServer.RegSvrEnum.dll)

Składnia

'Deklaracja
Public Property Password As String
    Get
    Set
'Użycie
Dim instance As UIConnectionInfo
Dim value As String

value = instance.Password

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

Wartość właściwości

Typ: System.String
A String wartość, która określa hasło logowania dla połączenia.

Uwagi

Gdy jest to możliwe, należy używać uwierzytelniania systemu Windows.

Nie należy używać pustego hasła. Należy używać silnego hasła.