Event Manager. Deliver Event(Object, EventArgs) Method
Delivers the event being managed to each listener.
protected: void DeliverEvent(System::Object ^ sender, EventArgs ^ args);
protected void DeliverEvent (object sender, EventArgs args);
member this.DeliverEvent : obj * EventArgs -> unit
Protected Sub DeliverEvent (sender As Object, args As EventArgs)
The object on which the event is being handled.
If you call the ProtectedAddListener method in your
AddListener implementation of your class, the list of listeners receiving the event is kept in an underlying collection. (
AddListener is not part of an interface or class contract.
AddListener is the suggested name for the method of your manager class that calls ProtectedAddListener and adds weak event pattern listeners for the event.)
ProtectedAddListener adds listeners to a single list. If your manager implementation maintains more than one list of listeners per event, do not use DeliverEvent or ProtectedAddListener. Instead, your implementation should create its own WeakEventManager.ListenerList instances,
AddListener should add listeners to the appropriate list, and events should be delivered to the appropriate listener list by calling DeliverEventToList.