Compartir a través de


User.LoginType Propiedad

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.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property LoginType As LoginType 
    Get
'Uso
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

Valor de la propiedad

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

Implementa

IUserOptions.LoginType

Ejemplos

Administrar usuarios, roles e inicios de sesión

Vea también

Referencia

User Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Entidades de seguridad (motor de base de datos)

CREATE USER (Transact-SQL)