Password 屬性
此 API 支援 基礎結構,但無法直接從您的程式碼使用。
不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 Gets or sets a String value that specifies the login password for the connection when using SQL Server Authentication.
命名空間: Microsoft.SqlServer.Management.Smo.RegSvrEnum
組件: Microsoft.SqlServer.RegSvrEnum (在 Microsoft.SqlServer.RegSvrEnum.dll 中)
語法
'宣告
Public Property Password As String
Get
Set
'用途
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)
屬性值
型別:System. . :: . .String
A String value that specifies the login password for the connection.
備註
盡可能使用 Windows 驗證。
請勿使用空白密碼。請使用增強式密碼。