ApiController::Unauthorized Method

 

Namespace:   System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

NameDescription
System_CAPS_protmethodUnauthorized(array<AuthenticationHeaderValue^>^)

Creates an UnauthorizedResult (401 Unauthorized) with the specified values.

System_CAPS_protmethodUnauthorized(IEnumerable<AuthenticationHeaderValue^>^)

Creates an UnauthorizedResult (401 Unauthorized) with the specified values.

Return to top

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.

Return to top

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.

Return to top
Show: