DeliverEvent Method
Collapse the table of content
Expand the table of content

WeakEventManager.ListenerList.DeliverEvent Method (Object, EventArgs, Type)

.NET Framework (current version)

Delivers the event being managed to each listener in the WeakEventManager.ListenerList.

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

public virtual bool DeliverEvent(
	object sender,
	EventArgs args,
	Type managerType


Type: System.Object

The object that raised the event.

Type: System.EventArgs

An object that contains the event data.

Type: System.Type

The type of the WeakEventManager that calls this method.

Return Value

Type: System.Boolean

true if any of the listeners in the WeakEventManager.ListenerList refer to an object that has been garbage collected; otherwise, false.

.NET Framework
Available since 4.5
Return to top
© 2016 Microsoft