UserNamePasswordValidator.CreateMembershipProviderValidator Method (MembershipProvider)

 

Gets an instance of a UserNamePasswordValidator that validates a username and password using the specified membership provider.

Namespace:   System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public static UserNamePasswordValidator CreateMembershipProviderValidator(
	MembershipProvider provider
)

Parameters

provider
Type: System.Web.Security.MembershipProvider

A MembershipProvider to validate the username and password.

Return Value

Type: System.IdentityModel.Selectors.UserNamePasswordValidator

An UserNamePasswordValidator that validates a username and password using provider.

The value of this static property can be supplied as a parameter to one of the constructors for the UserNameSecurityTokenAuthenticator class.

.NET Framework
Available since 3.0
Return to top
Show: