'Declaration Public Overloads Shared Function RegisterContext( _ ByVal context As ObjectContext, _ ByVal contextType As Type _ ) As IDisposable
public static IDisposable RegisterContext( ObjectContext context, Type contextType )
Parameters
- context
- An ObjectContext to set as default.
- contextType
- The type (derived from ObjectContext) to register the context for.
Return Value
An System.IDisposable to unregister the context.