Share via


RedirectResult Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod RedirectResult(Uri, ApiController)

Initializes a new instance of the <see cref="T:System.Web.Http.Results.RedirectResult"/> class with the values provided.

System_CAPS_pubmethod RedirectResult(Uri, HttpRequestMessage)

Initializes a new instance of the <see cref="T:System.Web.Http.Results.RedirectResult"/> class with the values provided.

See Also

RedirectResult Class
System.Web.Http.Results Namespace

Return to top

RedirectResult Constructor (Uri, ApiController)

Initializes a new instance of the <see cref="T:System.Web.Http.Results.RedirectResult"/> class with the values provided.

Syntax

public RedirectResult(
    Uri location,
    ApiController controller
)
public:
RedirectResult(
    Uri^ location,
    ApiController^ controller
)
new : 
        location:Uri *
        controller:ApiController -> RedirectResult
Public Sub New (
    location As Uri,
    controller As ApiController
)

Parameters

  • location
    Type: System.Uri

    The location to which to redirect.

Return to top

RedirectResult Constructor (Uri, HttpRequestMessage)

Initializes a new instance of the <see cref="T:System.Web.Http.Results.RedirectResult"/> class with the values provided.

Syntax

public RedirectResult(
    Uri location,
    HttpRequestMessage request
)
public:
RedirectResult(
    Uri^ location,
    HttpRequestMessage^ request
)
new : 
        location:Uri *
        request:HttpRequestMessage -> RedirectResult
Public Sub New (
    location As Uri,
    request As HttpRequestMessage
)

Parameters

  • location
    Type: System.Uri

    The location to which to redirect.

Return to top