RedirectResult Class

Syntax

public class RedirectResult : ActionResult, IActionResult

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.RedirectResult

Constructors

RedirectResult(System.String)
Arguments:
  • url (System.String) –
public RedirectResult(string url)
RedirectResult(System.String, System.Boolean)
Arguments:
  • url (System.String) –
  • permanent (System.Boolean) –
public RedirectResult(string url, bool permanent)

Properties

Permanent()
Return type:System.Boolean
public bool Permanent { get; set; }
Url()
Return type:System.String
public string Url { get; set; }
UrlHelper()
Return type:Microsoft.AspNet.Mvc.IUrlHelper
public IUrlHelper UrlHelper { get; set; }

Methods

ExecuteResult(Microsoft.AspNet.Mvc.ActionContext)
Arguments:
public override void ExecuteResult(ActionContext context)