UrlHelperExtensions.Action Metoda

Definicja

Przeciążenia

Action(IUrlHelper)

Generuje adres URL ze ścieżką dla metody akcji.

Action(IUrlHelper, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę.

Action(IUrlHelper, String, Object)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę i trasę values.

Action(IUrlHelper, String, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określone action nazwy i controller .

Action(IUrlHelper, String, String, Object)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę, controller nazwę i trasę values.

Action(IUrlHelper, String, String, Object, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę, nazwę, controller trasę valuesi protocol do użycia. Zobacz sekcję uwagi, aby uzyskać ważne informacje o zabezpieczeniach.

Action(IUrlHelper, String, String, Object, String, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę, nazwę, controller trasę values, protocol do użycia i host nazwę. Generuje bezwzględny adres URL, jeśli element protocol i host nie jestnull. Zobacz sekcję uwagi, aby uzyskać ważne informacje o zabezpieczeniach.

Action(IUrlHelper, String, String, Object, String, String, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę, nazwę, controller trasę values, protocol do użycia, host nazwy i fragment. Generuje bezwzględny adres URL, jeśli element protocol i host nie jestnull. Zobacz sekcję uwagi, aby uzyskać ważne informacje o zabezpieczeniach.

Action(IUrlHelper)

Generuje adres URL ze ścieżką dla metody akcji.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper);
public static string Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper);
public static string? Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper -> string
<Extension()>
Public Function Action (helper As IUrlHelper) As String

Parametry

helper
IUrlHelper

Element IUrlHelper.

Zwraca

Wygenerowany adres URL.

Dotyczy

Action(IUrlHelper, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ action);
public static string Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action);
public static string? Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? action);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper * string -> string
<Extension()>
Public Function Action (helper As IUrlHelper, action As String) As String

Parametry

helper
IUrlHelper

Element IUrlHelper.

action
String

Nazwa metody akcji.

Zwraca

Wygenerowany adres URL.

Dotyczy

Action(IUrlHelper, String, Object)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę i trasę values.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ action, System::Object ^ values);
public static string Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, object values);
public static string? Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? action, object? values);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper * string * obj -> string
<Extension()>
Public Function Action (helper As IUrlHelper, action As String, values As Object) As String

Parametry

helper
IUrlHelper

Element IUrlHelper.

action
String

Nazwa metody akcji.

values
Object

Obiekt, który zawiera wartości tras.

Zwraca

Wygenerowany adres URL.

Dotyczy

Action(IUrlHelper, String, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określone action nazwy i controller .

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ action, System::String ^ controller);
public static string Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller);
public static string? Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? action, string? controller);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper * string * string -> string
<Extension()>
Public Function Action (helper As IUrlHelper, action As String, controller As String) As String

Parametry

helper
IUrlHelper

Element IUrlHelper.

action
String

Nazwa metody akcji.

controller
String

Nazwa kontrolera.

Zwraca

Wygenerowany adres URL.

Dotyczy

Action(IUrlHelper, String, String, Object)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę, controller nazwę i trasę values.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ action, System::String ^ controller, System::Object ^ values);
public static string Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values);
public static string? Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? action, string? controller, object? values);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper * string * string * obj -> string
<Extension()>
Public Function Action (helper As IUrlHelper, action As String, controller As String, values As Object) As String

Parametry

helper
IUrlHelper

Element IUrlHelper.

action
String

Nazwa metody akcji.

controller
String

Nazwa kontrolera.

values
Object

Obiekt, który zawiera wartości tras.

Zwraca

Wygenerowany adres URL.

Dotyczy

Action(IUrlHelper, String, String, Object, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę, nazwę, controller trasę valuesi protocol do użycia. Zobacz sekcję uwagi, aby uzyskać ważne informacje o zabezpieczeniach.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ action, System::String ^ controller, System::Object ^ values, System::String ^ protocol);
public static string Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values, string protocol);
public static string? Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? action, string? controller, object? values, string? protocol);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper * string * string * obj * string -> string
<Extension()>
Public Function Action (helper As IUrlHelper, action As String, controller As String, values As Object, protocol As String) As String

Parametry

helper
IUrlHelper

Element IUrlHelper.

action
String

Nazwa metody akcji.

controller
String

Nazwa kontrolera.

values
Object

Obiekt, który zawiera wartości tras.

protocol
String

Protokół adresu URL, taki jak "http" lub "https".

Zwraca

Wygenerowany adres URL.

Uwagi

Ta metoda używa wartości , Host aby wypełnić sekcję hosta wygenerowanego identyfikatora URI. Poleganie na wartości bieżącego żądania może zezwalać niezaufanym wejściom na wpływ na wynikowy identyfikator URI, chyba że Host nagłówek został zweryfikowany. Zapoznaj się z dokumentacją wdrażania, aby uzyskać instrukcje dotyczące prawidłowego weryfikowania nagłówka Host w środowisku wdrażania.

Dotyczy

Action(IUrlHelper, String, String, Object, String, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę, nazwę, controller trasę values, protocol do użycia i host nazwę. Generuje bezwzględny adres URL, jeśli element protocol i host nie jestnull. Zobacz sekcję uwagi, aby uzyskać ważne informacje o zabezpieczeniach.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ action, System::String ^ controller, System::Object ^ values, System::String ^ protocol, System::String ^ host);
public static string Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values, string protocol, string host);
public static string? Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? action, string? controller, object? values, string? protocol, string? host);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper * string * string * obj * string * string -> string
<Extension()>
Public Function Action (helper As IUrlHelper, action As String, controller As String, values As Object, protocol As String, host As String) As String

Parametry

helper
IUrlHelper

Element IUrlHelper.

action
String

Nazwa metody akcji.

controller
String

Nazwa kontrolera.

values
Object

Obiekt, który zawiera wartości tras.

protocol
String

Protokół adresu URL, taki jak "http" lub "https".

host
String

Nazwa hosta adresu URL.

Zwraca

Wygenerowany adres URL.

Uwagi

Wartość host powinna być zaufaną wartością. Poleganie na wartości bieżącego żądania może zezwalać niezaufanym wejściom na wpływ na wynikowy identyfikator URI, chyba że Host nagłówek został zweryfikowany. Zapoznaj się z dokumentacją wdrażania, aby uzyskać instrukcje dotyczące prawidłowego weryfikowania nagłówka Host w środowisku wdrażania.

Dotyczy

Action(IUrlHelper, String, String, Object, String, String, String)

Generuje adres URL ze ścieżką dla metody akcji, która zawiera określoną action nazwę, nazwę, controller trasę values, protocol do użycia, host nazwy i fragment. Generuje bezwzględny adres URL, jeśli element protocol i host nie jestnull. Zobacz sekcję uwagi, aby uzyskać ważne informacje o zabezpieczeniach.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Action(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ action, System::String ^ controller, System::Object ^ values, System::String ^ protocol, System::String ^ host, System::String ^ fragment);
public static string Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values, string protocol, string host, string fragment);
public static string? Action (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? action, string? controller, object? values, string? protocol, string? host, string? fragment);
static member Action : Microsoft.AspNetCore.Mvc.IUrlHelper * string * string * obj * string * string * string -> string
<Extension()>
Public Function Action (helper As IUrlHelper, action As String, controller As String, values As Object, protocol As String, host As String, fragment As String) As String

Parametry

helper
IUrlHelper

Element IUrlHelper.

action
String

Nazwa metody akcji.

controller
String

Nazwa kontrolera.

values
Object

Obiekt, który zawiera wartości tras.

protocol
String

Protokół adresu URL, taki jak "http" lub "https".

host
String

Nazwa hosta adresu URL.

fragment
String

Fragment adresu URL.

Zwraca

Wygenerowany adres URL.

Uwagi

Wartość host powinna być zaufaną wartością. Poleganie na wartości bieżącego żądania może zezwalać niezaufanym wejściom na wpływ na wynikowy identyfikator URI, chyba że Host nagłówek został zweryfikowany. Zapoznaj się z dokumentacją wdrażania, aby uzyskać instrukcje dotyczące prawidłowego weryfikowania nagłówka Host w środowisku wdrażania.

Dotyczy