Version

DataContext Class

Abstract base class containing parameters pertaining to data-related operations in general.
Syntax
'Declaration
 
Public MustInherit Class DataContext 
public abstract class DataContext 
Remarks

Objects extending DataContext are created by WebScheduleInfo and passed to the WebSchedule data providers during data binding operations. The context information specified by each DataContext subclass is particular to an operation having to do with the storage/retrieval of one or more WebSchedule objects to/from the data source. Passing this information encapsulated within one argument simplifies the method signature of a data provider's operations, and facilitates the use of remote data sources.

The DataContext base class specifies an OperationName which all inheritors should set to their intended operation. Failure to identify the intended operation of a DataContext will cause the IDataFetch and/or IDataUpdate interfaces on a WebSchedule data provider to throw an ArgumentException.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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

See Also