MetaTable.GetActionPath 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定列的動作路徑。
多載
| 名稱 | Description |
|---|---|
| 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
動作的名稱。
傳回
指定動作的動作路徑與主鍵。
備註
動作路徑是針對特定實體的動作的 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
動作的名稱。
- path
- String
行動的虛擬路徑。
傳回
指定主鍵的動作路徑與虛擬路徑,並附加查詢字串值。
備註
動作路徑是針對特定實體的動作的 URL。 欲了解更多資訊,請參閱 System.Web.DynamicData.PageAction 課程概述。