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 例外狀況。