ChangePassword.MembershipProvider 屬性

定義

取得或設定用來管理成員資訊的成員資格提供者。Gets or sets the membership provider that is used to manage member information.

public:
 virtual property System::String ^ MembershipProvider { System::String ^ get(); void set(System::String ^ value); };
[System.Web.UI.Themeable(false)]
public virtual string MembershipProvider { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.MembershipProvider : string with get, set
Public Overridable Property MembershipProvider As String

屬性值

String

MembershipProvider 控制項的 ChangePassword 名稱。The name of the MembershipProvider for the ChangePassword control. 預設為應用程式的成員資格提供者。The default is the membership provider for the application.

屬性

備註

MembershipProvider屬性會取得或設定用來查閱成員資訊的成員資格提供者。The MembershipProvider property gets or sets the membership provider that is used to look up member information. 如果 MembershipProvider 屬性是 null 或空白, AspNetSqlMembershipProvider 則會使用預設的成員資格提供者。If the MembershipProvider property is null or empty, the default membership provider, AspNetSqlMembershipProvider, is used. 如需 ASP.NET 應用程式可用的成員資格提供者的詳細資訊,請參閱 成員資格提供者For more information about the membership providers available to ASP.NET applications, see Membership Providers.

新密碼必須符合 MinRequiredPasswordLength 、和屬性中的成員資格提供者所設定的最低需求 MinRequiredNonAlphanumericCharacters PasswordStrengthRegularExpressionThe new password must meet the minimum requirements set by the membership provider in the MinRequiredPasswordLength, MinRequiredNonAlphanumericCharacters, and PasswordStrengthRegularExpression properties. 如果密碼不符合這些需求, ChangePasswordError 就會引發事件。If the password does not meet these requirements, the ChangePasswordError event is raised.

這個屬性無法由佈景主題或樣式表主題設定。This property cannot be set by themes or style sheet themes. 如需詳細資訊,請參閱 ThemeableAttributeASP.NET 主題和外觀For more information, see ThemeableAttribute and ASP.NET Themes and Skins.

適用於

另請參閱