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.

ApiController.Redirect Method

 

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

NameDescription
System_CAPS_protmethodRedirect(String)

Creates a redirect result (302 Found) with the specified value.

System_CAPS_protmethodRedirect(Uri)

Creates a redirect result (302 Found) with the specified value.

Return to top

ApiController.Redirect Method (String)

Creates a redirect result (302 Found) with the specified value.

protected internal virtual RedirectResult Redirect(
	string location
)

Parameters

location
Type: System.String

The location to redirect to.

Return Value

Type: System.Web.Http.Results.RedirectResult

A redirect result (302 Found) with the specified value.

Return to top

ApiController.Redirect Method (Uri)

Creates a redirect result (302 Found) with the specified value.

protected internal virtual RedirectResult Redirect(
	Uri location
)

Parameters

location
Type: System.Uri

The location to redirect to.

Return Value

Type: System.Web.Http.Results.RedirectResult

A redirect result (302 Found) with the specified value.

Return to top
Show: