Version

WebScheduleInfo Property (WebScheduleDataProviderBase)

References the WebScheduleInfo managing data about resources and activities surrounding a particular active date.
Syntax
'Declaration
 
Public Property WebScheduleInfo As WebScheduleInfo
public WebScheduleInfo WebScheduleInfo {get; set;}
Remarks

Developers may assign an explicit object reference to a WebScheduleInfo at run-time to this property, but please note that an object reference cannot persist through viewstate and must be re-initialized on each page request. In order to persist this relationship in viewstate, the WebScheduleInfoID property (which can be set at design-time) is generally preferred.

One motivation of developers explicitly connecting data providers to a WebScheduleInfo element would be when these objects are spread across multiple user controls. When an application has this environment, it becomes impossible to know what the IDs of the resulting controls will be, in advance, when they are ultimately created by their user control. However, the application can predict how it uses these user controls, and obtain the necessary object references to realize this kind of connectivity at run-time during the Load stage of the ASP.NET page lifecycle.

Applications must associate a WebScheduleInfo element with their WebScheduleDataProviderBase data provider before a page renders, whether through this method, restoration of a connection that was serialized at design-time, or via an assignment of the WebScheduleInfo's ID to the WebScheduleInfoID property. At any point prior to the establishment of this connection, the content of a WebScheduleInfo's activities and resources may not accurately reflect the content of the data model because a temporary placeholder WebScheduleInfo is brought into existance until a connection to the actual WebScheduleInfo can be realized.

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