Sdílet prostřednictvím


MetaTable.GetActionPath Metoda

Definice

Získá cestu akce pro zadaný řádek.

Přetížení

GetActionPath(String, Object, String)

Vrátí cestu k akci pro zadaný řádek pomocí názvu akce a virtuální cesty akce.

GetActionPath(String)

Vrátí cestu k akci pro aktuální tabulku a zadanou akci.

GetActionPath(String, IList<Object>)

Vrátí cestu k akci pro aktuální tabulku, zadanou akci a zadaný primární klíč.

GetActionPath(String, Object)

Vrátí cestu k akci pro zadaný řádek pomocí názvu akce.

GetActionPath(String, RouteValueDictionary)

Vrátí cestu akce pro aktuální tabulku a pro zadanou akci a trasy.

GetActionPath(String, IList<Object>, String)

Připojí řetězce dotazů k cestě akce na základě zadaného primárního klíče a virtuální cesty.

Poznámky

Cesta k akci je adresa URL akce pro konkrétní entitu. Další informace najdete v přehledu System.Web.DynamicData.PageAction třídy.

GetActionPath(String, Object, String)

Vrátí cestu k akci pro zadaný řádek pomocí názvu akce a virtuální cesty akce.

public:
 System::String ^ GetActionPath(System::String ^ action, System::Object ^ row, System::String ^ path);
public:
 virtual System::String ^ GetActionPath(System::String ^ action, System::Object ^ row, System::String ^ path);
public string GetActionPath (string action, object row, string path);
member this.GetActionPath : string * obj * string -> string
abstract member GetActionPath : string * obj * string -> string
override this.GetActionPath : string * obj * string -> string
Public Function GetActionPath (action As String, row As Object, path As String) As String

Parametry

action
String

Název akce.

row
Object

Objekt, který obsahuje řádek pro cestu k akci.

path
String

Virtuální cesta akce.

Návraty

Cesta akce pro zadaný řádek.

Poznámky

Cesta k akci je adresa URL akce pro konkrétní entitu. Další informace najdete v přehledu System.Web.DynamicData.PageAction třídy.

Platí pro

GetActionPath(String)

Vrátí cestu k akci pro aktuální tabulku a zadanou akci.

public:
 System::String ^ GetActionPath(System::String ^ action);
public:
 virtual System::String ^ GetActionPath(System::String ^ action);
public string GetActionPath (string action);
member this.GetActionPath : string -> string
abstract member GetActionPath : string -> string
override this.GetActionPath : string -> string
Public Function GetActionPath (action As String) As String

Parametry

action
String

Název akce.

Návraty

Cesta k akci pro zadanou akci

Příklady

Cesta k akci je adresa URL akce pro konkrétní entitu. Další informace najdete v přehledu System.Web.DynamicData.PageAction třídy.

Platí pro

GetActionPath(String, IList<Object>)

Vrátí cestu k akci pro aktuální tabulku, zadanou akci a zadaný primární klíč.

public:
 System::String ^ GetActionPath(System::String ^ action, System::Collections::Generic::IList<System::Object ^> ^ primaryKeyValues);
public:
 virtual System::String ^ GetActionPath(System::String ^ action, System::Collections::Generic::IList<System::Object ^> ^ primaryKeyValues);
public string GetActionPath (string action, System.Collections.Generic.IList<object> primaryKeyValues);
member this.GetActionPath : string * System.Collections.Generic.IList<obj> -> string
abstract member GetActionPath : string * System.Collections.Generic.IList<obj> -> string
override this.GetActionPath : string * System.Collections.Generic.IList<obj> -> string
Public Function GetActionPath (action As String, primaryKeyValues As IList(Of Object)) As String

Parametry

action
String

Název akce.

primaryKeyValues
IList<Object>

Seznam hodnot sloupců, které tvoří primární klíč.

Návraty

Cesta akce pro zadanou akci a primární klíč.

Poznámky

Cesta k akci je adresa URL akce pro konkrétní entitu. Další informace najdete v přehledu System.Web.DynamicData.PageAction třídy.

Platí pro

GetActionPath(String, Object)

Vrátí cestu k akci pro zadaný řádek pomocí názvu akce.

public:
 System::String ^ GetActionPath(System::String ^ action, System::Object ^ row);
public:
 virtual System::String ^ GetActionPath(System::String ^ action, System::Object ^ row);
public string GetActionPath (string action, object row);
member this.GetActionPath : string * obj -> string
abstract member GetActionPath : string * obj -> string
override this.GetActionPath : string * obj -> string
Public Function GetActionPath (action As String, row As Object) As String

Parametry

action
String

Název akce.

row
Object

Řádek, pro který chcete získat cestu k akci.

Návraty

Cesta akce pro zadaný řádek.

Poznámky

Cesta k akci je adresa URL akce pro konkrétní entitu. Cesta k akci obsahuje názvy sloupců primárního klíče, které lze použít pro filtry řetězců dotazů.

Další informace najdete v přehledu System.Web.DynamicData.PageAction třídy.

Platí pro

GetActionPath(String, RouteValueDictionary)

Vrátí cestu akce pro aktuální tabulku a pro zadanou akci a trasy.

public:
 System::String ^ GetActionPath(System::String ^ action, System::Web::Routing::RouteValueDictionary ^ routeValues);
public:
 virtual System::String ^ GetActionPath(System::String ^ action, System::Web::Routing::RouteValueDictionary ^ routeValues);
public string GetActionPath (string action, System.Web.Routing.RouteValueDictionary routeValues);
member this.GetActionPath : string * System.Web.Routing.RouteValueDictionary -> string
abstract member GetActionPath : string * System.Web.Routing.RouteValueDictionary -> string
override this.GetActionPath : string * System.Web.Routing.RouteValueDictionary -> string
Public Function GetActionPath (action As String, routeValues As RouteValueDictionary) As String

Parametry

action
String

Název akce.

routeValues
RouteValueDictionary

Seznam tras pro akci.

Návraty

Cesta akce pro zadanou akci a trasy.

Poznámky

Cesta k akci je adresa URL akce pro konkrétní entitu. Další informace najdete v přehledu System.Web.DynamicData.PageAction třídy.

Platí pro

GetActionPath(String, IList<Object>, String)

Připojí řetězce dotazů k cestě akce na základě zadaného primárního klíče a virtuální cesty.

public:
 System::String ^ GetActionPath(System::String ^ action, System::Collections::Generic::IList<System::Object ^> ^ primaryKeyValues, System::String ^ path);
public:
 virtual System::String ^ GetActionPath(System::String ^ action, System::Collections::Generic::IList<System::Object ^> ^ primaryKeyValues, System::String ^ path);
public string GetActionPath (string action, System.Collections.Generic.IList<object> primaryKeyValues, string path);
member this.GetActionPath : string * System.Collections.Generic.IList<obj> * string -> string
abstract member GetActionPath : string * System.Collections.Generic.IList<obj> * string -> string
override this.GetActionPath : string * System.Collections.Generic.IList<obj> * string -> string
Public Function GetActionPath (action As String, primaryKeyValues As IList(Of Object), path As String) As String

Parametry

action
String

Název akce.

primaryKeyValues
IList<Object>

Seznam hodnot sloupců, které tvoří primární klíč.

path
String

Virtuální cesta akce.

Návraty

Cesta akce pro zadaný primární klíč a virtuální cestu s připojenými hodnotami řetězce dotazu.

Poznámky

Cesta k akci je adresa URL akce pro konkrétní entitu. Další informace najdete v přehledu System.Web.DynamicData.PageAction třídy.

Platí pro