GetDataKeyFromRoute Method

MetaTable.GetDataKeyFromRoute Method ()

.NET Framework 4.6 and 4.5

Retrieves the primary key of the entity from the route values.

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

public DataKey GetDataKeyFromRoute()

Return Value

Type: System.Web.UI.WebControls.DataKey

The primary-key values of the entities, if they are found; otherwise, null.

The route values typically come from the request URL query string.

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft