Version

PreviousActivity Property

Returns the activity that occurs before the earliest 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 PreviousActivity As ActivityBase
public ActivityBase PreviousActivity {get;}
Remarks

PreviousActivity property returns the previous activity that occurs before the earliest 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.PreviousActivity flag, or the underlying data connector doesn't support being able to query for this information. You can check to see if the HasPreviousActivity 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 previous activity that occurs before 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