Share via


ConnectionSettings.Login 属性

Gets or sets the logon required to establish a connection with the instance of the server.

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
Public Property Login As String 
    Get 
    Set
用法
Dim instance As ConnectionSettings 
Dim value As String 

value = instance.Login

instance.Login = value
public string Login { get; set; }
public:
property String^ Login {
    String^ get ();
    void set (String^ value);
}
member Login : string with get, set
function get Login () : String 
function set Login (value : String)

属性值

类型:System.String
A String value that specifies the logon required to establish a connection with the instance of the server.

示例

连接到 SQL Server 实例

请参阅

参考

ConnectionSettings 类

Microsoft.SqlServer.Management.Common 命名空间