Registers an
ObjectContext as a default for C1DataSource controls.
'Declaration
Public Overloads Shared Function RegisterContext( _
ByVal As System.Data.Entity.Core.Objects.ObjectContext _
) As System.IDisposable
public static System.IDisposable RegisterContext(
System.Data.Entity.Core.Objects.ObjectContext
)
Parameters
- context
- An ObjectContext to set as default.
Return Value
An System.IDisposable to unregister the .
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2