MetaForeignKeyColumn.GetForeignKeyPath 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定外鍵欄位父表中指定動作頁的路徑。
多載
| 名稱 | Description |
|---|---|
| GetForeignKeyPath(String, Object) |
取得指定外鍵欄位父表中指定動作頁的路徑。 |
| GetForeignKeyPath(String, Object, String) |
取得指定外鍵欄位父表中指定動作頁的路徑。 |
GetForeignKeyPath(String, Object)
取得指定外鍵欄位父表中指定動作頁的路徑。
public:
System::String ^ GetForeignKeyPath(System::String ^ action, System::Object ^ row);
public:
virtual System::String ^ GetForeignKeyPath(System::String ^ action, System::Object ^ row);
public string GetForeignKeyPath(string action, object row);
member this.GetForeignKeyPath : string * obj -> string
abstract member GetForeignKeyPath : string * obj -> string
override this.GetForeignKeyPath : string * obj -> string
Public Function GetForeignKeyPath (action As String, row As Object) As String
參數
- action
- String
目標動作。
- row
- Object
包含外鍵欄位的那一列。
傳回
指定外鍵欄位父表中指定動作頁的路徑。
備註
GetForeignKeyPath(String, Object) 方法會根據 ASP.NET 動態資料應用程式所定義的路由,回傳指定動作頁面的路徑。 此方法回傳空字串,若 row 為 null。
你可以使用類別PageAction中action定義的參數值。
另請參閱
適用於
GetForeignKeyPath(String, Object, String)
取得指定外鍵欄位父表中指定動作頁的路徑。
public:
System::String ^ GetForeignKeyPath(System::String ^ action, System::Object ^ row, System::String ^ path);
public:
virtual System::String ^ GetForeignKeyPath(System::String ^ action, System::Object ^ row, System::String ^ path);
public string GetForeignKeyPath(string action, object row, string path);
member this.GetForeignKeyPath : string * obj * string -> string
abstract member GetForeignKeyPath : string * obj * string -> string
override this.GetForeignKeyPath : string * obj * string -> string
Public Function GetForeignKeyPath (action As String, row As Object, path As String) As String
參數
- action
- String
目標動作。
- row
- Object
包含外鍵欄位的那一列。
- path
- String
目標頁面。
傳回
指定外鍵欄位父表中指定動作頁的路徑。
備註
該方法會 GetForeignKeyPath(String, Object) 根據指定的 path返回指定動作頁面的路徑。 此方法回傳空字串,若 row 為 null。
你可以使用類別PageAction中action定義的參數值。