LinqDataSourceView.CreateContext Method

Definition

Creates an instance of the data context type.

Overloads

CreateContext(Type)

Creates an instance of the data context type.

CreateContext(DataSourceOperation)

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

CreateContext(Type)

Creates an instance of the data context type.

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

Parameters

contextType
Type

The type of the data context to create.

Returns

An instance of the data context type.

Applies to

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

operation
DataSourceOperation

The data source operation to use.

Returns

An instance of the data context.

Applies to