MetaForeignKeyColumn.GetForeignKeyPath Method (String, Object, String)

 

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

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

abstract GetForeignKeyPath : 
        action:string *
        row:Object *
        path:string -> string
override GetForeignKeyPath : 
        action:string *
        row:Object *
        path:string -> string

Parameters

action
Type: System.String

The target action.

row
Type: System.Object

The row that contains the foreign-key field.

path
Type: System.String

The target page.

Return Value

Type: System.String

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

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.

.NET Framework
Available since 3.5
Return to top
Show: