Version

SuspendSort Method

Suspends internal sorting of the collection until the ResumeSort method is called.
Syntax
'Declaration
 
Public Sub SuspendSort() 
public void SuspendSort()
Remarks

When the contents of the AppointmentsCollection has changed, an internal flag is set which indicates that the contents must be sorted the next time the collection is accessed. In the case where a large number of items are being added, or an AppointmentRecurrence has changed (or has been assigned to the Recurrence property), this can affect performance adversely. The SuspendSort method can be used to prevent this automatic sorting for the period of time during which a potentially expensive operation is being performed, so that sorting is suspended until the ResumeSort method is called.

Note: The ResumeSort method must be called after the SuspendSort method is used so that the contents of the collection are sorted before the collection is accessed; failure to do so can result in unpredictable behavior since the ordinal positions of the Appointment objects in the collection will not coincide with their chronological order, which is necessary for the component's correct functionality.

Requirements

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

Reference

AppointmentsCollection Class
AppointmentsCollection Members
ResumeSort Method
Infragistics.Win.UltraControlBase.BeginUpdate
Infragistics.Win.UltraControlBase.EndUpdate(System.Boolean)