Represents the method that will handle the DownloadStringCompleted event of a WebClient.
| C# | Visual Basic |
public delegate void DownloadStringCompletedEventHandler( Object sender, DownloadStringCompletedEventArgs e )
Public Delegate Sub DownloadStringCompletedEventHandler ( _ sender As Object, _ e As DownloadStringCompletedEventArgs _ )
- sender (Object)
- The source of the event.
- e (DownloadStringCompletedEventArgs)
- A DownloadStringCompletedEventArgs that contains event data.
When you create a DownloadStringCompletedEventHandler delegate, you identify the method that will handle the event.
To associate the event with your event handler, add an instance of the delegate to the event.
The event handler is called whenever the event occurs, unless you remove the delegate.