UserNamePasswordServiceCredential.CustomUserNamePasswordValidator 属性

定义

获取或设置自定义用户名和密码验证程序。

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

属性值

UserNamePasswordValidator

自定义用户名和密码验证程序。

注解

UserNamePasswordValidationMode 属性必须设置为 MembershipProviderMembershipProvider 才能生效。 MembershipProvider设置属性且UserNamePasswordValidationMode属性不是时,WCF 将使用Windows 身份验证并忽略该属性的值MembershipProvider

对于 Custom 模式,服务通过调用 UserNamePasswordValidator 方法,使用 Validate 进行用户名/密码身份验证。

适用于