ChangePassword.MembershipProvider 属性


获取或设置用于管理成员信息的成员资格提供程序。Gets or sets the membership provider that is used to manage member information.

 virtual property System::String ^ MembershipProvider { System::String ^ get(); void set(System::String ^ value); };
public virtual string MembershipProvider { get; set; }
member this.MembershipProvider : string with get, set
Public Overridable Property MembershipProvider As 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 或空,则使用默认的成员资格提供程序 AspNetSqlMembershipProviderIf 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.