System.AsyncCallback Delegate

References a method to be called when a corresponding asynchronous operation completes.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public delegate void AsyncCallback (IAsyncResult ar)

Parameters

ar
A IAsyncResult object containing information about the asynchronous operation that has completed.

Remarks

Use an AsyncCallback delegate to process the results of an asynchronous operation in a separate thread. The AsyncCallback delegate represents a callback method that is called when the asynchronous operation completes. The callback method takes an IAsyncResult parameter, which is subsequently used to obtain the results of the asynchronous operation.

For more information about asynchronous programming, see Using an AsyncCallback Delegate to End an Asynchronous Operation and Using an AsyncCallback Delegate and State Object in Asynchronous Programming Design Patterns.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0