MetaForeignKeyColumn.ExtractForeignKey Method (IDictionary, String)


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

Saves the value of a foreign key in the specified dictionary.

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

abstract ExtractForeignKey : 
        dictionary:IDictionary *
        value:string -> unit
override ExtractForeignKey : 
        dictionary:IDictionary *
        value:string -> unit


Type: System.Collections.IDictionary

A dictionary object that contains the new values for a data field.

Type: System.String

The value of the foreign key.

The ExtractForeignKey method is used to save the value of a foreign key in the dictionary that contains all the new values for a data field. Typically, the ExtractForeignKey method is used when a new value is selected from a DropDownList control for the foreign key field.

.NET Framework
Available since 3.5
Return to top