Partager via


Propriété Login.IsDisabled

Gets or sets the Boolean property value that specifies whether the SQL Server login account is disabled.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase,  _
    "false")> _
Public ReadOnly Property IsDisabled As Boolean 
    Get
'Utilisation
Dim instance As Login 
Dim value As Boolean 

value = instance.IsDisabled
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase, 
    "false")]
public bool IsDisabled { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase, 
    L"false")]
public:
virtual property bool IsDisabled {
    bool get () sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase, 
    "false")>]
abstract IsDisabled : bool
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase, 
    "false")>]
override IsDisabled : bool
final function get IsDisabled () : boolean

Valeur de propriété

Type : System.Boolean
A Boolean value that specifies whether the login account is disabled. If True, the login is disabled.If False (default), the login is not disabled.

Implémente

ILoginOptions.IsDisabled

Exemples

Gestion des utilisateurs, rôles et connexions

Voir aussi

Référence

Login Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Principaux (moteur de base de données)

CREATE LOGIN (Transact-SQL)