Password 属性
此 API 支持 基础结构,但不能通过代码直接使用。
不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a String value that specifies the login password for the connection when using SQL Server Authentication.
命名空间: Microsoft.SqlServer.Management.Smo.RegSvrEnum
程序集: Microsoft.SqlServer.RegSvrEnum(在 Microsoft.SqlServer.RegSvrEnum.dll 中)
语法
声明
Public Property Password As String
Get
Set
用法
Dim instance As UIConnectionInfo
Dim value As String
value = instance.Password
instance.Password = value
public string Password { get; set; }
public:
property String^ Password {
String^ get ();
void set (String^ value);
}
member Password : string with get, set
function get Password () : String
function set Password (value : String)
属性值
类型:System. . :: . .String
A String value that specifies the login password for the connection.
注释
请尽可能使用 Windows 身份验证。
不要使用空密码。请使用强密码。