MetaTable.GetDataKeyFromRoute Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Show: