ApiController::Unauthorized Method
Namespace:
System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | Unauthorized(array<AuthenticationHeaderValue^>^) | Creates an UnauthorizedResult (401 Unauthorized) with the specified values. |
![]() | Unauthorized(IEnumerable<AuthenticationHeaderValue^>^) | Creates an UnauthorizedResult (401 Unauthorized) with the specified values. |
ApiController::Unauthorized Method (array<AuthenticationHeaderValue^>^)
Creates an UnauthorizedResult (401 Unauthorized) with the specified values.
public protected: UnauthorizedResult^ Unauthorized( ... array<AuthenticationHeaderValue^>^ challenges )
Parameters
- challenges
-
Type:
array<System.Net.Http.Headers::AuthenticationHeaderValue^>^
The WWW-Authenticate challenges.
Return Value
Type: System.Web.Http.Results::UnauthorizedResult^An UnauthorizedResult with the specified values.
ApiController::Unauthorized Method (IEnumerable<AuthenticationHeaderValue^>^)
Creates an UnauthorizedResult (401 Unauthorized) with the specified values.
public protected: virtual UnauthorizedResult^ Unauthorized( IEnumerable<AuthenticationHeaderValue^>^ challenges )
Parameters
- challenges
-
Type:
System.Collections.Generic::IEnumerable<AuthenticationHeaderValue^>^
The WWW-Authenticate challenges.
Return Value
Type: System.Web.Http.Results::UnauthorizedResult^An UnauthorizedResult with the specified values.
Show:
