ILoginOptions 接口

The ILoginOptions class is an interface that represents a collection of options associated with a login.

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None Or AutomatedPolicyEvaluationMode.Enforce Or AutomatedPolicyEvaluationMode.CheckOnChanges Or AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<DisplayNameKeyAttribute("ILoginOptions_Name")> _
<DisplayDescriptionKeyAttribute("ILoginOptions_Desc")> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<StateChangeEventAttribute("CREATE_LOGIN", "LOGIN")> _
<StateChangeEventAttribute("ALTER_LOGIN", "LOGIN")> _
Public Interface ILoginOptions _
    Inherits IDmfFacet
用法
Dim instance As ILoginOptions
[CLSCompliantAttribute(false)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None|AutomatedPolicyEvaluationMode.Enforce|AutomatedPolicyEvaluationMode.CheckOnChanges|AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[DisplayNameKeyAttribute("ILoginOptions_Name")]
[DisplayDescriptionKeyAttribute("ILoginOptions_Desc")]
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[StateChangeEventAttribute("CREATE_LOGIN", "LOGIN")]
[StateChangeEventAttribute("ALTER_LOGIN", "LOGIN")]
public interface ILoginOptions : IDmfFacet
[CLSCompliantAttribute(false)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::None|AutomatedPolicyEvaluationMode::Enforce|AutomatedPolicyEvaluationMode::CheckOnChanges|AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[DisplayNameKeyAttribute(L"ILoginOptions_Name")]
[DisplayDescriptionKeyAttribute(L"ILoginOptions_Desc")]
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Smo.LocalizableResources")]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[StateChangeEventAttribute(L"CREATE_LOGIN", L"LOGIN")]
[StateChangeEventAttribute(L"ALTER_LOGIN", L"LOGIN")]
public interface class ILoginOptions : IDmfFacet
[<CLSCompliantAttribute(false)>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None|AutomatedPolicyEvaluationMode.Enforce|AutomatedPolicyEvaluationMode.CheckOnChanges|AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<DisplayNameKeyAttribute("ILoginOptions_Name")>]
[<DisplayDescriptionKeyAttribute("ILoginOptions_Desc")>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<StateChangeEventAttribute("CREATE_LOGIN", "LOGIN")>]
[<StateChangeEventAttribute("ALTER_LOGIN", "LOGIN")>]
type ILoginOptions =  
    interface
        interface IDmfFacet
    end
public interface ILoginOptions extends IDmfFacet

ILoginOptions 类型公开以下成员。

属性

  名称 说明
公共属性 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.
公共属性 DateLastModified
公共属性 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.

页首