MetaModel.RegisterContext Method (Type, ContextConfiguration)
.NET Framework (current version)
Registers a data-context instance by using the specified context configuration.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
abstract RegisterContext : contextType:Type * configuration:ContextConfiguration -> unit override RegisterContext : contextType:Type * configuration:ContextConfiguration -> unit
Parameters
- contextType
-
Type:
System.Type
The type of the data context as defined in the data model.
- configuration
-
Type:
System.Web.DynamicData.ContextConfiguration
The configuration information for the context, as defined by the ContextConfiguration class.
| Exception | Condition |
|---|---|
| ArgumentNullException | contextType is null. |
.NET Framework
Available since 3.5
Available since 3.5
Show: