MetaTable.GetActionPath Method

Definition

Gets the action path for the specified row.

Overloads

GetActionPath(String, Object, String)

Returns the action path for the specified row by using the name of the action and the virtual path of the action.

GetActionPath(String)

Returns the action path for the current table and the specified action.

GetActionPath(String, IList<Object>)

Returns the action path for the current table, specified action, and specified primary key.

GetActionPath(String, Object)

Returns the action path for the specified row by using the name of the action.

GetActionPath(String, RouteValueDictionary)

Returns the action path for the current table and for the specified action and routes.

GetActionPath(String, IList<Object>, String)

Appends query strings to the action path, based on the specified primary key and virtual path.

Remarks

The action path is a URL for an action for a specific entity. For more information, see the System.Web.DynamicData.PageAction class overview.

GetActionPath(String, Object, String)

Returns the action path for the specified row by using the name of the action and the virtual path of the action.

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

Parameters

action
String

The name of the action.

row
Object

An object that contains the row for the action path.

path
String

The virtual path of the action.

Returns

The action path for the specified row.

Remarks

The action path is a URL for an action for a specific entity. For more information, see the System.Web.DynamicData.PageAction class overview.

Applies to

GetActionPath(String)

Returns the action path for the current table and the specified action.

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

Parameters

action
String

The name of the action.

Returns

The action path for the specified action.

Examples

The action path is a URL for an action for a specific entity. For more information, see the System.Web.DynamicData.PageAction class overview.

Applies to

GetActionPath(String, IList<Object>)

Returns the action path for the current table, specified action, and specified primary key.

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

Parameters

action
String

The name of the action.

primaryKeyValues
IList<Object>

The list of column values that make up the primary key.

Returns

The action path for the specified action and primary key.

Remarks

The action path is a URL for an action for a specific entity. For more information, see the System.Web.DynamicData.PageAction class overview.

Applies to

GetActionPath(String, Object)

Returns the action path for the specified row by using the name of the action.

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

Parameters

action
String

The name of the action.

row
Object

The row to get the action path for.

Returns

The action path for the specified row.

Remarks

The action path is a URL for an action for a specific entity. The action path contains the primary-key column names, which can be used for query-string filters.

For more information, see the System.Web.DynamicData.PageAction class overview.

Applies to

GetActionPath(String, RouteValueDictionary)

Returns the action path for the current table and for the specified action and routes.

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

Parameters

action
String

The name of the action.

routeValues
RouteValueDictionary

The list of routes for the action.

Returns

The action path for the specified action and routes.

Remarks

The action path is a URL for an action for a specific entity. For more information, see the System.Web.DynamicData.PageAction class overview.

Applies to

GetActionPath(String, IList<Object>, String)

Appends query strings to the action path, based on the specified primary key and virtual path.

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

Parameters

action
String

The name of the action.

primaryKeyValues
IList<Object>

The list of column values that make up the primary key.

path
String

The virtual path of the action.

Returns

The action path for the specified primary key and virtual path, with query-string values appended to it.

Remarks

The action path is a URL for an action for a specific entity. For more information, see the System.Web.DynamicData.PageAction class overview.

Applies to