ערוך

שתף באמצעות


UserNamePasswordValidator.CreateMembershipProviderValidator Method

Definition

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.

Applies to