This documentation is archived and is not being maintained.

WeakEventManager.ScheduleCleanup Method

Requests that a purge of unused entries in the underlying listener list be performed on a lower priority thread.

Namespace:  System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

protected void ScheduleCleanup()
You cannot use methods in XAML.

Calling the ScheduleCleanup method is similar to calling the Purge method on the current manager's list, at lower thread priority, with the purgeAll parameter set to false.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: