LinqDataSourceView.CreateContext Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 -> objoverride this.CreateContext : Type -> objProtected Overridable Function CreateContext (contextType As Type) As ObjectParameters
- 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.ContextDataSourceContextDataProtected Overrides Function CreateContext (operation As DataSourceOperation) As ContextDataSourceContextDataParameters
- operation
- DataSourceOperation
The data source operation to use.
Returns
An instance of the data context.