ILoginOptions Interface
SQL Server 2012
The ILoginOptions class is an interface that represents a collection of options associated with a login.
This API is not CLS-compliant. Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
[StateChangeEventAttribute(L"ALTER_LOGIN", L"LOGIN")] [DisplayNameKeyAttribute(L"ILoginOptions_Name")] [EvaluationModeAttribute(AutomatedPolicyEvaluationMode::None|AutomatedPolicyEvaluationMode::Enforce|AutomatedPolicyEvaluationMode::CheckOnChanges|AutomatedPolicyEvaluationMode::CheckOnSchedule)] [LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Smo.LocalizableResources")] [StateChangeEventAttribute(L"CREATE_LOGIN", L"LOGIN")] [DisplayDescriptionKeyAttribute(L"ILoginOptions_Desc")] [TypeConverterAttribute(typeof(LocalizableTypeConverter))] [CLSCompliantAttribute(false)] public interface class ILoginOptions : IDmfFacet
The ILoginOptions type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AsymmetricKey | Gets or sets the asymmetric key that is associated with the login. |
![]() | Certificate | Gets or sets the certificate that is associated with the login. |
![]() | CreateDate | Gets the date and time when the login was created. |
![]() | Credential | Gets or sets the credential that is associated with the login. |
![]() | DefaultDatabase | Gets or sets the database that the login uses by default. |
![]() | ID | Gets the ID value that uniquely identifies the login. |
![]() | IsDisabled | Gets the Boolean value that determines whether the login is disabled. |
![]() | IsLocked | Gets the Boolean value that determines whether the login is locked. |
![]() | IsSystemObject | Gets the Boolean value that determines whether the login is a system object. |
![]() | Language | Gets or sets the language that is associated with the login. |
![]() | LanguageAlias | Gets the alternative name that describes the language that is associated with the login. |
![]() | MustChangePassword | Gets the Boolean value that determines whether the login password must be changed. |
![]() | Name | Gets or sets the name of the login. |
![]() | PasswordExpirationEnabled | Gets or sets the Boolean value that determines whether the login password will expire automatically. |
![]() | PasswordPolicyEnforced | Gets or sets the Boolean value that determines whether the login password must adhere to a policy. |

.gif?cs-save-lang=1&cs-lang=cpp)