语言

RedirectResult 类

定义

通过重定向到指定的 URI 来控制对应用程序操作的处理。

public class RedirectResult : System.Web.Mvc.ActionResult
type RedirectResult = class
    inherit ActionResult
Public Class RedirectResult
Inherits ActionResult
继承
RedirectResult

构造函数

名称 说明
RedirectResult(String)

初始化 RedirectResult 类的新实例。

RedirectResult(String, Boolean)

使用指定的 URL 和永久重定向标志初始化 类的新实例 RedirectResult 。

属性

名称 说明
Permanent

获取一个值,该值指示重定向是否应为永久重定向。

Url

获取或设置目标 URL。

方法

名称 说明
ExecuteResult(ControllerContext)

允许通过继承自 ActionResult 类的自定义类型处理操作方法的结果。

适用于