UserNamePasswordValidator.CreateMembershipProviderValidator 方法

定义

获取 UserNamePasswordValidator 的实例,它使用指定的成员资格提供程序来验证用户名和密码。

public:
 static System::IdentityModel::Selectors::UserNamePasswordValidator ^ CreateMembershipProviderValidator(System::Web::Security::MembershipProvider ^ provider);
public static System.IdentityModel.Selectors.UserNamePasswordValidator CreateMembershipProviderValidator (System.Web.Security.MembershipProvider provider);
static member CreateMembershipProviderValidator : System.Web.Security.MembershipProvider -> System.IdentityModel.Selectors.UserNamePasswordValidator
Public Shared Function CreateMembershipProviderValidator (provider As MembershipProvider) As UserNamePasswordValidator

参数

provider
MembershipProvider

一个验证用户名和密码的 MembershipProvider

返回

一个使用 UserNamePasswordValidator 来验证用户名和密码的 provider

注解

此静态属性的值可作为参数提供给 UserNameSecurityTokenAuthenticator 类的构造函数之一。

适用于