Share via


SecurePassword プロパティ

SQL Server 認証を使用してサーバーへ接続する場合に、ログオンで使用するセキュリティで保護されたパスワードを取得または設定します。

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

構文

'宣言
<BrowsableAttribute(False)> _
Public Property SecurePassword As SecureString
    Get
    Set
'使用
Dim instance As ConnectionSettings
Dim value As SecureString

value = instance.SecurePassword

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

プロパティ値

型: System.Security. . :: . .SecureString
SQL Server 認証の使用時に必要なセキュリティで保護されたパスワードを示す SecureString 値です。

説明

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