EntityDataSource.ContextType Property


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

Gets or sets the typed ObjectContext used by the EntityDataSource control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Entity (in System.Web.Entity.dll)

public Type ContextType { get; set; }

Property Value

Type: System.Type

An object that derives from ObjectContext.

The ObjectContext used by the EntityDataSource control can be accessed from the ContextType property. For more information, see Object Context Life-Cycle Management (EntityDataSource).

.NET Framework
Available since 3.5
Return to top