Information
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

 

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.

Return to top

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.

Return to top
Show: