When you use an AsyncCallback delegate to process the results of the asynchronous operation in a separate thread, you can use a state object to pass information between the callbacks and to retrieve a final result.
demonstrates using asynchronous methods in the Dns class to retrieve Domain Name System (DNS) information for user-specified computers.
uses the HostRequest class to store state information.
A HostRequest object gets created for each computer name entered by the user.
This object is passed to the BeginGetHostByName method.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.