編輯

共用方式為


MetaForeignKeyColumn.GetForeignKeyPath Method

Definition

Gets the path for the specified action page of the parent table of the specified foreign-key field.

Overloads

GetForeignKeyPath(String, Object)

Gets the path for the specified action page of the parent table of the specified foreign-key field.

GetForeignKeyPath(String, Object, String)

Gets the path for the specified action page of the parent table of the specified foreign-key field.

GetForeignKeyPath(String, Object)

Gets the path for the specified action page of the parent table of the specified foreign-key field.

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

Parameters

action
String

The target action.

row
Object

The row that contains the foreign-key field.

Returns

The path for the specified action page of the parent table of the specified foreign-key field.

Remarks

The GetForeignKeyPath(String, Object) method returns the path for the specified action page based on the routes defined for the ASP.NET Dynamic Data application. This method returns an empty string, if row is null.

You can use the values defined in the PageAction class for the action parameter.

See also

Applies to

GetForeignKeyPath(String, Object, String)

Gets the path for the specified action page of the parent table of the specified foreign-key field.

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

Parameters

action
String

The target action.

row
Object

The row that contains the foreign-key field.

path
String

The target page.

Returns

The path for the specified action page of the parent table of the specified foreign-key field.

Remarks

The GetForeignKeyPath(String, Object) method returns the path for the specified action page based on the specified path. This method returns an empty string, if row is null.

You can use the values defined in the PageAction class for the action parameter.

See also

Applies to