Aracılığıyla paylaş


PageModel.RedirectToActionPermanentPreserveMethod Yöntem

Tanım

Belirtilen , , controllerNamerouteValuesve fragmentkullanarak (Status308PermanentRedirect) öğesini true ve PreserveMethod true olarak ayarlanmış şekilde belirtilen actionNameeyleme Permanent yeniden yönlendirir.

public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod (string actionName = default, string controllerName = default, object routeValues = default, string fragment = default);
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod (string? actionName = default, string? controllerName = default, object? routeValues = default, string? fragment = default);
abstract member RedirectToActionPermanentPreserveMethod : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPermanentPreserveMethod : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPermanentPreserveMethod (Optional actionName As String = Nothing, Optional controllerName As String = Nothing, Optional routeValues As Object = Nothing, Optional fragment As String = Nothing) As RedirectToActionResult

Parametreler

actionName
String

Eylemin adı.

controllerName
String

pageModel'in adı.

routeValues
Object

URL'yi oluşturmak için kullanılacak yol verileri.

fragment
String

URL'ye eklenecek parça.

Döndürülenler

Yanıt için oluşturulan RedirectToActionResult .

Şunlara uygulanır