Version

InitializeResourceBindings Method

Initializes resource bindings at start-up.
Syntax
'Declaration
 
Protected Overridable Function InitializeResourceBindings( _
   ByVal defaultBinding As ResourceBinding _
) As ResourceBinding
protected virtual ResourceBinding InitializeResourceBindings( 
   ResourceBinding defaultBinding
)

Parameters

defaultBinding
Default ResourceBinding pre-initialized with default binding member property values.

Return Value

An initialized ResourceBinding object; inheritors may replace the defaultBinding with their own custom subclass.
Remarks

If inheritors override this method to supply a custom subclass of ResourceBinding, then they must not access any WebScheduleInfo properties. Initialization may take place very early in the ASP.NET page lifecycle, and other WebSchedule controls may not be accessible. Premature access can cause the WebScheduleInfo control to prevent the data provider from connecting to it later on.

Inheritors subclassing a ResourceBinding can handle this method to have their subclass appear in the Properties window at design-time through the ResourceBindings property.

If you handle this method, overriding the RegisterDataBindings method becomes unnecessary. The data provider automatically registers ResourceBindings with it's data bindings collection during relevant operations.

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