[This is preliminary documentation and is subject to change.]
Represents the method that handles the ActivityReportEvent.
| C# | Visual Basic | Visual C++ |
public delegate void ActivityReportEventHandler( Object sender, ActivityReportEventArgs e )
Public Delegate Sub ActivityReportEventHandler ( _ sender As Object, _ e As ActivityReportEventArgs _ )
public delegate void ActivityReportEventHandler( Object^ sender, ActivityReportEventArgs^ e )
- sender (Object)
Users may register a callback to listen for this event.
class MyClass { Dvtk.Sessions.Session ses; // Implement a callback handler with same argument syntax as this delegate declaration. private void OnActivityReportEvent(object sender, Dvtk.Events.ActivityReportEventArgs e) { ... } // Create handler instance. private Dvtk.Events.ActivityReportEventHandler myHandler = new Dvtk.Events.ActivityReportEventHandler(this.OnActivityReportEvent); // Couple handler instance to event source. ses.ActivityReportEvent += myHandler; }