This documentation is archived and is not being maintained.

WeakEventManager.ListenerList.IsEmpty Property

Gets a value that declares whether this WeakEventManager.ListenerList is empty.

Namespace: System.Windows
Assembly: WindowsBase (in windowsbase.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public bool IsEmpty { get; }
/** @property */
public boolean get_IsEmpty ()

public function get IsEmpty () : boolean

You cannot use this property in XAML.

Property Value

true if the list is empty; otherwise, false.

This method is equivalent to checking whether the Count is zero, and does not check whether any of the references in the list are now stale. If you want to assure that all references are still valid, call Purge just prior to checking the empty status of the list.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: