PrincipalPermissionAttribute.Authenticated PrincipalPermissionAttribute.Authenticated PrincipalPermissionAttribute.Authenticated PrincipalPermissionAttribute.Authenticated Property

定义

获取或设置一个指示当前主题是否已经过基于角色的基础安全提供程序验证的值。Gets or sets a value indicating whether the current principal has been authenticated by the underlying role-based security provider.

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

属性值

如果当前用户的身份已经过验证,则为 true;否则,为 falsetrue if the current principal has been authenticated; otherwise, false.

适用于