Share via


HttpUtility.GetWindowsIdentityOfCurrentUser Method (Boolean, HttpSessionState)

 

Retrieves the Windows identity of the current user by specifying the HTTP session.

Namespace:   Microsoft.WindowsServerSolutions.WebApi.Framework
Assembly:  Wssg.WebApi.Framework (in Wssg.WebApi.Framework.dll)

Syntax

public static WindowsIdentity GetWindowsIdentityOfCurrentUser(
    bool throwException,
    HttpSessionState session
)
public:
static WindowsIdentity^ GetWindowsIdentityOfCurrentUser(
    bool throwException,
    HttpSessionState^ session
)
Public Shared Function GetWindowsIdentityOfCurrentUser (
    throwException As Boolean,
    session As HttpSessionState
) As WindowsIdentity

Parameters

  • throwException
    Type: System.Boolean

    true to throw an exception if an error occurs; otherwise, false.

Return Value

Type: System.Security.Principal.WindowsIdentity

The WindowsIdentity.

See Also

GetWindowsIdentityOfCurrentUser Overload
HttpUtility Class
Microsoft.WindowsServerSolutions.WebApi.Framework Namespace

Return to top