ClaimsIdentity.IsAuthenticated 属性

定义

获取一个值,该值指示是否验证了标识。Gets a value that indicates whether the identity has been authenticated.

public:
 virtual property bool IsAuthenticated { bool get(); };
public virtual bool IsAuthenticated { get; }
member this.IsAuthenticated : bool
Public Overridable ReadOnly Property IsAuthenticated As Boolean

属性值

Boolean

true 如果标识已经过身份验证,则为;否则为 falsetrue if the identity has been authenticated; otherwise, false.

实现

注解

true 如果 AuthenticationType 属性不为 null 或为空字符串,则为。true if the AuthenticationType property is not null or an empty string.

适用于