This topic has not yet been rated - Rate this topic

WeakEventManager.StopListening Method

When overridden in a derived class, stops listening on the provided source for the event being managed.

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

protected abstract void StopListening (
	Object source
)
protected abstract void StopListening (
	Object source
)
protected abstract function StopListening (
	source : Object
)
You cannot use methods in XAML.

Parameters

source

The source to stop listening on.

Notes to Inheritors: StopListening implementations should remove the class handler as added via StartListening. Removing a listener should not clear the listener list, it should only disconnect the class handler (perhaps temporarily). Other methods are available for clearing the entire list, such as Purge with purgeAll true.

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
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.