Version

ScheduleInfo Property (Activity)

Gets the WebScheduleInfo element owning this Activity object.
Syntax
'Declaration
 
Public ReadOnly Property ScheduleInfo As WebScheduleInfo
public WebScheduleInfo ScheduleInfo {get;}

Property Value

A reference to the owning WebScheduleInfo element on the page, or null (Nothing in Visual Basic .NET) if the Activity hasn't been initialized with an owning WebScheduleInfo at this point.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionThrown if the ScheduleInfo property is assigned a different owner after already having been initialized. Check the HasScheduleInfo property before assigning a WebScheduleInfo to avoid making this error.
Remarks

If the current Activity object is un-owned, then an application may assign a non-null WebScheduleInfo to it for initialization purposes (for example, during data binding). An Activity requires a non-null WebScheduleInfo owner for it's properties to default their values to correctly, otherwise the error message "Object reference not set to an instance of an object" may appear when accessing properties dependent on WebScheduleInfo.

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