Aracılığıyla paylaş


RedirectResult Sınıf

Tanım

ActionResult Sağlanan URL'ye Konum üst bilgisi içeren Bir Bulundu (302), Kalıcı Olarak Taşındı (301), Geçici Yeniden Yönlendirme (307) veya Kalıcı Yeniden Yönlendirme (308) yanıtı döndüren.

public ref class RedirectResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::ViewFeatures::IKeepTempDataResult
public class RedirectResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult
type RedirectResult = class
    inherit ActionResult
    interface IKeepTempDataResult
    interface IActionResult
type RedirectResult = class
    inherit ActionResult
    interface IActionResult
    interface IKeepTempDataResult
Public Class RedirectResult
Inherits ActionResult
Implements IActionResult, IKeepTempDataResult
Devralma
RedirectResult
Uygulamalar

Oluşturucular

RedirectResult(String)

Sağlanan değerlerle sınıfının yeni bir örneğini RedirectResult başlatır.

RedirectResult(String, Boolean)

Sağlanan değerlerle sınıfının yeni bir örneğini RedirectResult başlatır.

RedirectResult(String, Boolean, Boolean)

Sağlanan değerlerle sınıfının yeni bir örneğini RedirectResult başlatır.

Özellikler

Permanent

True ise yeniden yönlendirmenin kalıcı veya false ise geçici olması gerektiğini belirten değeri alır veya ayarlar.

PreserveMethod

Yeniden yönlendirmenin ilk istek yöntemini koruduğunu belirten bir gösterge alır veya ayarlar.

Url

Yeniden yönlendirilecek URL'yi alır veya ayarlar.

UrlHelper

Bu sonuç için öğesini IUrlHelper alır veya ayarlar.

Yöntemler

ExecuteResult(ActionContext)
Geçersiz.

Eylem yönteminin sonuç işlemini zaman uyumlu olarak yürütür. Bu yöntem, bir eylem yönteminin sonucunu işlemek için MVC tarafından çağrılır.

ExecuteResult(ActionContext)

Eylem yönteminin sonuç işlemini zaman uyumlu olarak yürütür. Bu yöntem, bir eylem yönteminin sonucunu işlemek için MVC tarafından çağrılır.

(Devralındığı yer: ActionResult)
ExecuteResultAsync(ActionContext)

Eylem yönteminin sonuç işlemini zaman uyumsuz olarak yürütür. Bu yöntem, bir eylem yönteminin sonucunu işlemek için MVC tarafından çağrılır.

ExecuteResultAsync(ActionContext)

Eylem yönteminin sonuç işlemini zaman uyumsuz olarak yürütür. Bu yöntem, bir eylem yönteminin sonucunu işlemek için MVC tarafından çağrılır. Bu yöntemin varsayılan uygulaması yöntemini çağırır ExecuteResult(ActionContext) ve tamamlanmış bir görev döndürür.

(Devralındığı yer: ActionResult)

Şunlara uygulanır