Version

Operation Property

Defines the type of data operation that this context supports.
Syntax
'Declaration
 
Public Property Operation As String
public string Operation {get; set;}

Property Value

The name of the operation performed, following the convention of starting with a verb ("Fetch", "Update", "Add", "Remove") and ending with a noun ("Activity", "Resource", "Reminder").
Remarks

Inheritors should set this property within the constructor of their DataContext subclass. The standard implementation of IDataFetch and IDataUpdate on WebScheduleDataProviderBase will use the operation to dispatch the DataContext to the appropriate method during data binding.

If the operation name is not recognized by the implementation of IDataFetch and IDataUpdate, then an ArgumentException may be thrown by the data provider. Developers creating their own custom data provider through inheritance may override the implementation of those interface methods with their own, to route custom DataContext subclasses to their own operations. See the documentation on creating custom data providers for further information.

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