MembershipUser.IsApproved 属性

定义

获取或设置一个值,该值指示是否可以对成员资格用户进行身份验证。Gets or sets whether the membership user can be authenticated.

public:
 virtual property bool IsApproved { bool get(); void set(bool value); };
public virtual bool IsApproved { get; set; }
member this.IsApproved : bool with get, set
Public Overridable Property IsApproved As Boolean

属性值

如果可以对用户进行身份验证,则为 true;否则为 falsetrue if the user can be authenticated; otherwise, false.

注解

成员资格用户的 IsApproved 值是在调用 ValidateUser 时由 SqlMembershipProvider检查的。The IsApproved value for a membership user is checked during the call to ValidateUser by the SqlMembershipProvider. 如果 IsApproved 属性设置为 false,则 ValidateUser 方法返回 false,即使提供的用户名和密码是正确的也是如此。If the IsApproved property is set to false, the ValidateUser method returns false even if the supplied user name and password are correct.

适用于

另请参阅