Share via


ConnectionSettings.SecureConnectionString プロパティ

暗号化された接続文字列を取得または設定します。

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

構文

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

value = instance.SecureConnectionString

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

プロパティ値

型: SecureString
暗号化された接続文字列を示す SecureString 値です。

説明

このプロパティが明示的に設定されている場合は、指定された接続文字列の値に基づいて、ServerConnection オブジェクトのすべてのプロパティが設定されます。

接続を変更できない場合にこのプロパティを設定しようとすると、ConnectionCannotBeChangedException 例外がスローされます。

関連項目

参照

ConnectionSettings クラス

Microsoft.SqlServer.Management.Common 名前空間