RedirectToActionResult Konstruktory

Definicja

Przeciążenia

RedirectToActionResult(String, String, Object)

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

RedirectToActionResult(String, String, Object, Boolean)

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

RedirectToActionResult(String, String, Object, String)

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

RedirectToActionResult(String, String, Object, Boolean, Boolean)

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

RedirectToActionResult(String, String, Object, Boolean, String)

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

RedirectToActionResult(String, String, Object, Boolean, Boolean, String)

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

RedirectToActionResult(String, String, Object)

Źródło:
RedirectToActionResult.cs
Źródło:
RedirectToActionResult.cs

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues);
public RedirectToActionResult (string actionName, string controllerName, object routeValues);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object)

Parametry

actionName
String

Nazwa akcji, która ma być używana do generowania adresu URL.

controllerName
String

Nazwa kontrolera do użycia do generowania adresu URL.

routeValues
Object

Dane trasy do użycia do generowania adresu URL.

Dotyczy

RedirectToActionResult(String, String, Object, Boolean)

Źródło:
RedirectToActionResult.cs
Źródło:
RedirectToActionResult.cs

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean)

Parametry

actionName
String

Nazwa akcji, która ma być używana do generowania adresu URL.

controllerName
String

Nazwa kontrolera do użycia do generowania adresu URL.

routeValues
Object

Dane trasy do użycia do generowania adresu URL.

permanent
Boolean

Jeśli ustawiono wartość true, powoduje trwałe przekierowanie (301). W przeciwnym razie jest używane tymczasowe przekierowanie (302).

Dotyczy

RedirectToActionResult(String, String, Object, String)

Źródło:
RedirectToActionResult.cs
Źródło:
RedirectToActionResult.cs

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, fragment As String)

Parametry

actionName
String

Nazwa akcji, która ma być używana do generowania adresu URL.

controllerName
String

Nazwa kontrolera do użycia do generowania adresu URL.

routeValues
Object

Dane trasy do użycia do generowania adresu URL.

fragment
String

Fragment do dodania do adresu URL.

Dotyczy

RedirectToActionResult(String, String, Object, Boolean, Boolean)

Źródło:
RedirectToActionResult.cs
Źródło:
RedirectToActionResult.cs

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, bool preserveMethod);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, bool preserveMethod);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * bool -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean)

Parametry

actionName
String

Nazwa akcji, która ma być używana do generowania adresu URL.

controllerName
String

Nazwa kontrolera do użycia do generowania adresu URL.

routeValues
Object

Dane trasy do użycia do generowania adresu URL.

permanent
Boolean

Jeśli ustawiono wartość true, powoduje trwałe przekierowanie (301). W przeciwnym razie jest używane tymczasowe przekierowanie (302).

preserveMethod
Boolean

Jeśli ustawiono wartość true, utwórz tymczasowe przekierowanie (307) lub trwałe przekierowanie (308) zachowaj początkową metodę żądania.

Dotyczy

RedirectToActionResult(String, String, Object, Boolean, String)

Źródło:
RedirectToActionResult.cs
Źródło:
RedirectToActionResult.cs

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, fragment As String)

Parametry

actionName
String

Nazwa akcji, która ma być używana do generowania adresu URL.

controllerName
String

Nazwa kontrolera do użycia do generowania adresu URL.

routeValues
Object

Dane trasy do użycia do generowania adresu URL.

permanent
Boolean

Jeśli ustawiono wartość true, powoduje trwałe przekierowanie (301). W przeciwnym razie jest używane tymczasowe przekierowanie (302).

fragment
String

Fragment do dodania do adresu URL.

Dotyczy

RedirectToActionResult(String, String, Object, Boolean, Boolean, String)

Źródło:
RedirectToActionResult.cs
Źródło:
RedirectToActionResult.cs

Inicjuje nowe wystąpienie elementu RedirectToActionResult z podanymi wartościami.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, bool preserveMethod, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, bool preserveMethod, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean, fragment As String)

Parametry

actionName
String

Nazwa akcji, która ma być używana do generowania adresu URL.

controllerName
String

Nazwa kontrolera do użycia do generowania adresu URL.

routeValues
Object

Dane trasy do użycia do generowania adresu URL.

permanent
Boolean

Jeśli ustawiono wartość true, powoduje trwałe przekierowanie (301). W przeciwnym razie jest używane tymczasowe przekierowanie (302).

preserveMethod
Boolean

Jeśli ustawiono wartość true, utwórz tymczasowe przekierowanie (307) i trwałe przekierowanie (308) zachowaj początkową metodę żądania.

fragment
String

Fragment do dodania do adresu URL.

Dotyczy