Creates an IClaimsPrincipal from the
httpContext.User.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in
microsoft.identitymodel.dll)
Usage
Syntax
Visual Basic |
Public Shared Function CreateFromHttpContext ( _
httpContext As HttpContext _
) As IClaimsPrincipal
|
C# |
public static IClaimsPrincipal CreateFromHttpContext (
HttpContext httpContext
)
|
C++ |
public:
static IClaimsPrincipal^ CreateFromHttpContext (
HttpContext^ httpContext
)
|
J# |
public static IClaimsPrincipal CreateFromHttpContext (
HttpContext httpContext
)
|
JScript |
public static function CreateFromHttpContext (
httpContext : HttpContext
) : IClaimsPrincipal
|
Parameters
- httpContext
-
The httpContext object.
Return Value
An IClaimsPrincipal.
Exceptions
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