次の方法で共有


Password プロパティ

SQL Server 認証を使用してサーバーへ接続するためのログオン パスワードを取得または設定します。

名前空間:  Microsoft.SqlServer.Management.Common
アセンブリ:  Microsoft.SqlServer.ConnectionInfo (Microsoft.SqlServer.ConnectionInfo.dll)

構文

'宣言
<BrowsableAttribute(False)> _
Public Property Password As String
    Get
    Set
'使用
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)

プロパティ値

型: System. . :: . .String
SQL Server 認証の使用時に必要なパスワードを示す String 値です。

説明

Windows 認証を使用する場合は、パスワード プロパティの値は必要ありません。