Version

Compact Method (ListScheduleDataConnector)

Compacts any Infragistics.Collections.WeakDictionary`2 instances used by this connector.
Syntax
'Declaration
 
Public Sub Compact() 
public void Compact()
Remarks

The ListScheduleDataConnector uses weak dictionaries to store references to schedule objects such as appointments.

Because of the non-deterministic nature of garbage collection on the .NET platform, weakly-held object references which have fallen out of scope are not always released in a timely fashion.

This method provides a way for the developer to immediately reclaim memory used by the weakly-held object references associated with this connector instance.

Note that a garbage collection cycle should be triggered immediately prior to invoking this method, using the static System.GC.Collect method.

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

Reference

ListScheduleDataConnector Class
ListScheduleDataConnector Members
Infragistics.Collections.WeakDictionary`2.Compact(System.Boolean)