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 类概述。

适用于