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.

C#
public string GetActionPath(string action, object row, string path);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetActionPath(String)

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

C#
public string GetActionPath(string action);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetActionPath(String, IList<Object>)

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

C#
public string GetActionPath(string action, System.Collections.Generic.IList<object> primaryKeyValues);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetActionPath(String, Object)

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

C#
public string GetActionPath(string action, object row);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetActionPath(String, RouteValueDictionary)

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

C#
public string GetActionPath(string action, System.Web.Routing.RouteValueDictionary routeValues);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetActionPath(String, IList<Object>, String)

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

C#
public string GetActionPath(string action, System.Collections.Generic.IList<object> primaryKeyValues, string path);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1