UserNamePasswordValidator.CreateMembershipProviderValidator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an instance of a UserNamePasswordValidator that validates a username and password using the specified membership provider.
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
Parameters
- provider
- MembershipProvider
A MembershipProvider to validate the username and password.
Returns
An UserNamePasswordValidator that validates a username and password using provider
.
Remarks
The value of this static property can be supplied as a parameter to one of the constructors for the UserNameSecurityTokenAuthenticator class.