L
Lore Leunoeg
Hello again.
My code adds several EventHandlers to the same Event-Delegate. Thereafter
I 'd like to get a list of all the handlers added. I found that events are
some kind of multicast delegates and that it should be possible to get the
list with den GetInvocationList-Method of the Delegate. But I really don't
succeed to do this.
ClickButton is the class that holds the delegate and the event (ClickEvent)
and fires the event.
Sub Main(ByVal CmdArgs() As String)
Dim button As ClickButton = New ClickButton()
AddHandler button.ClickEvent, AddressOf ClickHandler1
AddHandler button.ClickEvent, AddressOf ClickHandler2
AddHandler button.ClickEvent, AddressOf ClickHandler3
'GetInvocationList
End Sub
What is the object on that I can call GetInvocationList???
Thank you
Sincerely
Lore
My code adds several EventHandlers to the same Event-Delegate. Thereafter
I 'd like to get a list of all the handlers added. I found that events are
some kind of multicast delegates and that it should be possible to get the
list with den GetInvocationList-Method of the Delegate. But I really don't
succeed to do this.
ClickButton is the class that holds the delegate and the event (ClickEvent)
and fires the event.
Sub Main(ByVal CmdArgs() As String)
Dim button As ClickButton = New ClickButton()
AddHandler button.ClickEvent, AddressOf ClickHandler1
AddHandler button.ClickEvent, AddressOf ClickHandler2
AddHandler button.ClickEvent, AddressOf ClickHandler3
'GetInvocationList
End Sub
What is the object on that I can call GetInvocationList???
Thank you
Sincerely
Lore