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

WeakEventManager::ListenerList<TEventArgs>::DeliverEvent Method (Object^, EventArgs^, Type^)

.NET Framework (current version)
 

Delivers the event being managed to each listener in the WeakEventManager::ListenerList<TEventArgs>.

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

public:
virtual bool DeliverEvent(
	Object^ sender,
	EventArgs^ e,
	Type^ managerType
) override

Parameters

sender
Type: System::Object^

The object that raised the event.

e
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<TEventArgs> refer to an object that has been garbage collected; otherwise, false.

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