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 命名空間