Bagikan melalui


User.Login Property

Gets the login that is associated with the database user.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property Login As String
    Get
    Set
'Usage
Dim instance As User
Dim value As String

value = instance.Login

instance.Login = value
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)]
public string Login { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property String^ Login {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
member Login : string with get, set
function get Login () : String
function set Login (value : String)

Property Value

Type: System.String
A String value that specifies the login associated with the database user.