Version

DataBindings Property (WebScheduleDataProviderBase)

Accesses the collection of ScheduleDataBindings which can be added to before processing a data-binding operation.
Syntax
'Declaration
 
Protected ReadOnly Property DataBindings As DataBindingCollection
protected DataBindingCollection DataBindings {get;}

Property Value

The temporary collection of ScheduleDataBinding instances pertaining to the current operation, if called after RegisterDataBindings has completed.
Remarks

Inheritors who have customized and/or extended their ScheduleDataBindings and are extending the WebScheduleDataProviderBase class should register their own ScheduleDataBindings in this collection by overriding the RegisterDataBindings method.

The default implementation of RegisterDataBindings will add the standard WebSchedule data binding objects to this collection for each operation, based on whatever DataContext it gets passed by the data-binding framework. Inheritors have two options for adding their own, extended derivations of the supplemental classes to the WebSchedule object model. First, they can append their own ScheduleDataBindings to the collection by calling Addso that they get applied after the standard data binding objects to any commands required by the operation. Alternatively, they can override the default data binding objects (this is required if the custom ScheduleDataBinding is a subclass of one of the standard WebSchedule classes, like ResourceBinding) by calling Clear and then Add or AddRange.

No attempts should be made to register additional data binding objects with the DataBindings collection once data-bind processing has begun (i.e., the recommended place for all such registrations is in your RegisterDataBindings override or at the very beginning of your Fetch or Update method implementation for the current operation (this latter approach can be used to sidestep having to identify the DataContext based on it's Operation property) in an overriden implementation of RegisterDataBindings that must account for all possible data contexts.)

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