Say I have
in a class called myClass.
and somewhere in my program, I write
Is there a way for myClass to remove all of the handlers associated with myClass.myEvent? (Or must I manually keep track of all of the handlers?)
Thanks.
VB.NET:
public event myEvent()
and somewhere in my program, I write
VB.NET:
AddHandler myClass.myEvent, AddressOf method1
AddHandler myClass.myEvent, AddressOf method2
AddHandler myClass.myEvent, AddressOf method3
Is there a way for myClass to remove all of the handlers associated with myClass.myEvent? (Or must I manually keep track of all of the handlers?)
Thanks.