RedirectResult Constructor
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
RedirectResult(Uri, ApiController) | Initializes a new instance of the <see cref="T:System.Web.Http.Results.RedirectResult"/> class with the values provided. |
|
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.UriThe location to which to redirect.
controller
Type: System.Web.Http.ApiControllerThe controller from which to obtain the dependencies needed for execution.
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.UriThe location to which to redirect.
request
Type: System.Net.Http.HttpRequestMessageThe request message which led to this result.
Return to top