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 Overridable Function DeliverEvent (
	sender As Object,
	args As EventArgs,
	managerType As Type
) As Boolean

Parameters

sender
Type: System.Object

The object that raised the event.

args
Type: System.EventArgs

An object that contains the event data.

managerType
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
Show: