Login.IsDisabled Property


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

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

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase, 
public bool IsDisabled { get; }

Property Value

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.

Return to top