Share via


HttpUtility.GetWindowsIdentityOfCurrentUser Method (Boolean)

 

Retrieves the Windows identity of the current user.

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

Syntax

public static WindowsIdentity GetWindowsIdentityOfCurrentUser(
    bool throwException
)
public:
static WindowsIdentity^ GetWindowsIdentityOfCurrentUser(
    bool throwException
)
Public Shared Function GetWindowsIdentityOfCurrentUser (
    throwException As Boolean
) 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