MetaTable.GetActionPath 方法

定义

获取指定行的操作路径。

重载

名称 说明
GetActionPath(String, Object, String)

使用操作的名称和操作的虚拟路径返回指定行的操作路径。

GetActionPath(String)

返回当前表和指定操作的操作路径。

GetActionPath(String, IList<Object>)

返回当前表、指定操作和指定主键的操作路径。

GetActionPath(String, Object)

使用操作的名称返回指定行的操作路径。

GetActionPath(String, RouteValueDictionary)

返回当前表和指定操作和路由的操作路径。

GetActionPath(String, IList<Object>, String)

根据指定的主键和虚拟路径,将查询字符串追加到操作路径。

注解

操作路径是特定实体的操作的 URL。 有关详细信息,请参阅 System.Web.DynamicData.PageAction 类概述。

GetActionPath(String, Object, String)

使用操作的名称和操作的虚拟路径返回指定行的操作路径。

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

参数

action
String

作的名称。

row
Object

包含操作路径行的对象。

path
String

操作的虚拟路径。

返回

指定行的操作路径。

注解

操作路径是特定实体的操作的 URL。 有关详细信息,请参阅 System.Web.DynamicData.PageAction 类概述。

适用于

GetActionPath(String)

返回当前表和指定操作的操作路径。

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

参数

action
String

作的名称。

返回

指定操作的操作路径。

示例

操作路径是特定实体的操作的 URL。 有关详细信息,请参阅 System.Web.DynamicData.PageAction 类概述。

适用于

GetActionPath(String, IList<Object>)

返回当前表、指定操作和指定主键的操作路径。

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

参数

action
String

作的名称。

primaryKeyValues
IList<Object>

构成主键的列值的列表。

返回

指定操作和主键的操作路径。

注解

操作路径是特定实体的操作的 URL。 有关详细信息,请参阅 System.Web.DynamicData.PageAction 类概述。

适用于

GetActionPath(String, Object)

使用操作的名称返回指定行的操作路径。

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

参数

action
String

作的名称。

row
Object

要为其获取操作路径的行。

返回

指定行的操作路径。

注解

操作路径是特定实体的操作的 URL。 操作路径包含主键列名称,可用于查询字符串筛选器。

有关详细信息,请参阅 System.Web.DynamicData.PageAction 类概述。

适用于

GetActionPath(String, RouteValueDictionary)

返回当前表和指定操作和路由的操作路径。

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

参数

action
String

作的名称。

routeValues
RouteValueDictionary

操作的路由列表。

返回

指定操作和路由的操作路径。

注解

操作路径是特定实体的操作的 URL。 有关详细信息,请参阅 System.Web.DynamicData.PageAction 类概述。

适用于

GetActionPath(String, IList<Object>, String)

根据指定的主键和虚拟路径,将查询字符串追加到操作路径。

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

参数

action
String

作的名称。

primaryKeyValues
IList<Object>

构成主键的列值的列表。

path
String

操作的虚拟路径。

返回

指定主键和虚拟路径的操作路径,其中追加了查询字符串值。

注解

操作路径是特定实体的操作的 URL。 有关详细信息,请参阅 System.Web.DynamicData.PageAction 类概述。

适用于