ConnectionSettings.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)
属性值
类型:String
一个 String 值,该值指定使用 SQL Server 身份验证时需要的密码。
注释
在使用时 , 不需要密码 , 物产值 Windows 身份验证。