Delegate for Events.
[Visual Basic] Public Delegate Sub EventHandler( _ ByVal sender As Object, _ ByVal e As EventArgs _ ) [C#] public delegate void EventHandler( object sender, EventArgs e ); [C++] public __gc __delegate void EventHandler( Object* sender, EventArgs* e );
[JScript] In JScript, you can use the delegates in the NGWS frameworks, but you cannot define your own.
The declaration of your event-handling method must have the same parameters as the EventHandler delegate declaration.
Every subclass of Delegate and MulticastDelegate has a constructor and an
Invoke method. See the Managed C++ code example given in the
Delegate topic.
Namespace: System
Assembly: mscorlib.dll