Version

NextActivity Property

Returns the activity that occurs after the latest date in the ActivityQuery.DateRanges of the query. Property's value is valid only if this information was requested by the associated activity query and the information is available.
Syntax
'Declaration
 
Public ReadOnly Property NextActivity As ActivityBase
public ActivityBase NextActivity {get;}
Remarks

NextActivity property returns the next activity that exists after the latest date in the ActivityQuery.DateRanges of the associated ActivityQuery object. It returns null if no such activity exists or that the information is not available, which could be because ActivityQuery's ActivityQuery.RequestedInformation flags didn't contain the ActivityQueryRequestedDataFlags.NextActivity flag, or the underlying data connector doesn't support being able to query for this information. You can check to see if the HasNextActivity property returns false to ascertain that such an activity doesn't exist.

This information is used by schedule controls to provide navigation user interface for navigating to the next activity that occurs after the currently displayed activities.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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