Freigeben über


User.LoginType-Eigenschaft

Gets the type of login that is associated with the database user, such as whether it is a Windows group or a SQL Server standard login.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property LoginType As LoginType 
    Get
'Usage
Dim instance As User 
Dim value As LoginType 

value = instance.LoginType
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public LoginType LoginType { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
virtual property LoginType LoginType {
    LoginType get () sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
abstract LoginType : LoginType
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
override LoginType : LoginType
final function get LoginType () : LoginType

Eigenschaftswert

Typ: Microsoft.SqlServer.Management.Smo.LoginType
A LoginType object value that specifies the type of login that is associated with the database user.

Implementiert

IUserOptions.LoginType

Beispiele

Verwalten von Benutzern, Rollen und Anmeldungen

Siehe auch

Verweis

User Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Prinzipale (Datenbankmodul)

CREATE USER (Transact-SQL)