LinqDataSourceView.CreateContext LinqDataSourceView.CreateContext LinqDataSourceView.CreateContext LinqDataSourceView.CreateContext Method

Definition

Creates an instance of the data context type.

Overloads

CreateContext(Type) CreateContext(Type) CreateContext(Type) CreateContext(Type)

Creates an instance of the data context type.

CreateContext(DataSourceOperation) CreateContext(DataSourceOperation) CreateContext(DataSourceOperation) CreateContext(DataSourceOperation)

Creates an instance of the data context type using the specified data source operation.

CreateContext(Type) CreateContext(Type) CreateContext(Type) CreateContext(Type)

Creates an instance of the data context type.

protected:
 virtual System::Object ^ CreateContext(Type ^ contextType);
protected virtual object CreateContext (Type contextType);
override this.CreateContext : Type -> obj
Protected Overridable Function CreateContext (contextType As Type) As Object

Parameters

contextType
Type Type Type Type

The type of the data context to create.

Returns

An instance of the data context type.

CreateContext(DataSourceOperation) CreateContext(DataSourceOperation) CreateContext(DataSourceOperation) CreateContext(DataSourceOperation)

Creates an instance of the data context type using the specified data source operation.

protected:
 override System::Web::UI::WebControls::ContextDataSourceContextData ^ CreateContext(System::Web::UI::DataSourceOperation operation);
protected override System.Web.UI.WebControls.ContextDataSourceContextData CreateContext (System.Web.UI.DataSourceOperation operation);
override this.CreateContext : System.Web.UI.DataSourceOperation -> System.Web.UI.WebControls.ContextDataSourceContextData
Protected Overrides Function CreateContext (operation As DataSourceOperation) As ContextDataSourceContextData

Parameters

Returns

Applies to