ConnectionSettings.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)

属性值

类型:SecureString
一个 SecureString 值,该值指定使用 SQL Server 身份验证时需要的安全密码。

注释

在使用时 , 不需要密码 , 物产值 Windows 身份验证。

请参阅

参考

ConnectionSettings 类

Microsoft.SqlServer.Management.Common 命名空间