Partager via


UnauthorizedResult Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod UnauthorizedResult(IEnumerable<AuthenticationHeaderValue>, ApiController)

Initializes a new instance of the UnauthorizedResult class, using a controller.

System_CAPS_pubmethod UnauthorizedResult(IEnumerable<AuthenticationHeaderValue>, HttpRequestMessage)

Initializes a new instance of the UnauthorizedResult class, using a request.

See Also

UnauthorizedResult Class
System.Web.Http.Results Namespace

Return to top

UnauthorizedResult Constructor (IEnumerable<AuthenticationHeaderValue>, ApiController)

Initializes a new instance of the UnauthorizedResult class, using a controller.

Syntax

public UnauthorizedResult(
    IEnumerable<AuthenticationHeaderValue> challenges,
    ApiController controller
)
public:
UnauthorizedResult(
    IEnumerable<AuthenticationHeaderValue^>^ challenges,
    ApiController^ controller
)
new : 
        challenges:IEnumerable<AuthenticationHeaderValue> *
        controller:ApiController -> UnauthorizedResult
Public Sub New (
    challenges As IEnumerable(Of AuthenticationHeaderValue),
    controller As ApiController
)

Parameters

Return to top

UnauthorizedResult Constructor (IEnumerable<AuthenticationHeaderValue>, HttpRequestMessage)

Initializes a new instance of the UnauthorizedResult class, using a request.

Syntax

public UnauthorizedResult(
    IEnumerable<AuthenticationHeaderValue> challenges,
    HttpRequestMessage request
)
public:
UnauthorizedResult(
    IEnumerable<AuthenticationHeaderValue^>^ challenges,
    HttpRequestMessage^ request
)
new : 
        challenges:IEnumerable<AuthenticationHeaderValue> *
        request:HttpRequestMessage -> UnauthorizedResult
Public Sub New (
    challenges As IEnumerable(Of AuthenticationHeaderValue),
    request As HttpRequestMessage
)

Parameters

Return to top