Share via


MultiServerSqlConnectionInfo.UserName Property

Gets or sets the name of the login to use when connecting.

Namespace:  Microsoft.SqlServer.Management.MultiServerConnection
Assembly:  Microsoft.SqlServer.Management.MultiServerConnection (in Microsoft.SqlServer.Management.MultiServerConnection.dll)

Syntax

'Declaration
Public Overrides Property UserName As String
    Get
    Set
'Usage
Dim instance As MultiServerSqlConnectionInfo
Dim value As String

value = instance.UserName

instance.UserName = value
public override string UserName { get; set; }
public:
virtual property String^ UserName {
    String^ get () override;
    void set (String^ value) override;
}
abstract UserName : string with get, set
override UserName : string with get, set
override function get UserName () : String
override function set UserName (value : String)

Property Value

Type: System.String
A string value specifying the login name.