ClaimsPrincipal.Current Property

.NET Framework (current version)
 

Gets the current claims principal.

Namespace:   System.Security.Claims
Assembly:  mscorlib (in mscorlib.dll)

public static ClaimsPrincipal Current { get; }

Property Value

Type: System.Security.Claims.ClaimsPrincipal

The current claims principal.

By default, Thread.CurrentPrincipal is returned. You can change this behavior by setting the ClaimsPrincipalSelector property to specify a delegate to be called to determine the current principal.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top
Show: