Redigera

Dela via


UserNamePasswordServiceCredential.CustomUserNamePasswordValidator Property

Definition

Gets or sets a custom user name and password validator.

public:
 property System::IdentityModel::Selectors::UserNamePasswordValidator ^ CustomUserNamePasswordValidator { System::IdentityModel::Selectors::UserNamePasswordValidator ^ get(); void set(System::IdentityModel::Selectors::UserNamePasswordValidator ^ value); };
public System.IdentityModel.Selectors.UserNamePasswordValidator CustomUserNamePasswordValidator { get; set; }
member this.CustomUserNamePasswordValidator : System.IdentityModel.Selectors.UserNamePasswordValidator with get, set
Public Property CustomUserNamePasswordValidator As UserNamePasswordValidator

Property Value

A custom user name and password validator.

Remarks

The UserNamePasswordValidationMode property must be set to MembershipProvider for the MembershipProvider to take effect. When the MembershipProvider property is set and the UserNamePasswordValidationMode property is not, WCF uses Windows authentication and ignores the value of the MembershipProvider property.

For Custom mode, the service uses UserNamePasswordValidator for user name/password authentication by calling the Validate method.

Applies to