Gets a IClaimsPrincipal with a ClaimsIdentity that contains zero claims.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim value As IClaimsPrincipal

value = ClaimsPrincipal.AnonymousPrincipal

Syntax

Visual Basic
Public Shared ReadOnly Property AnonymousPrincipal As IClaimsPrincipal
C#
public static IClaimsPrincipal AnonymousPrincipal { get; }
C++
public:
static property IClaimsPrincipal^ AnonymousPrincipal {
		IClaimsPrincipal^ get ();
}
J#
/** @property */
public static IClaimsPrincipal get_AnonymousPrincipal ()
JScript
public static function get AnonymousPrincipal () : IClaimsPrincipal

Property Value

Returns IClaimsPrincipal.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also