The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
UnauthorizedResult Constructor
Namespace:
System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | UnauthorizedResult(IEnumerable<AuthenticationHeaderValue^>^, ApiController^) | Initializes a new instance of the UnauthorizedResult class, using a controller. |
![]() | UnauthorizedResult(IEnumerable<AuthenticationHeaderValue^>^, HttpRequestMessage^) | Initializes a new instance of the UnauthorizedResult class, using a request. |
UnauthorizedResult Constructor (IEnumerable<AuthenticationHeaderValue^>^, ApiController^)
Initializes a new instance of the UnauthorizedResult class, using a controller.
public:
UnauthorizedResult(
IEnumerable<AuthenticationHeaderValue^>^ challenges,
ApiController^ controller
)
Parameters
- challenges
-
Type:
System.Collections.Generic::IEnumerable<AuthenticationHeaderValue^>^
The WWW-Authenticate challenges.
- controller
-
Type:
System.Web.Http::ApiController^
The controller from which to obtain the dependencies needed for execution.
UnauthorizedResult Constructor (IEnumerable<AuthenticationHeaderValue^>^, HttpRequestMessage^)
Initializes a new instance of the UnauthorizedResult class, using a request.
public:
UnauthorizedResult(
IEnumerable<AuthenticationHeaderValue^>^ challenges,
HttpRequestMessage^ request
)
Parameters
- challenges
-
Type:
System.Collections.Generic::IEnumerable<AuthenticationHeaderValue^>^
The WWW-Authenticate challenges.
- request
-
Type:
System.Net.Http::HttpRequestMessage^
The request message which led to this result.
Show:
