Gets a value that indicates whether the asynchronous operation has completed.
Assembly: mscorlib (in mscorlib.dll)
When this property is true, you can assume it is safe to discard any resources you allocate for use by the asynchronous operation.Notes to Implementers
Implementers will typically return the value of a private field or internal test as the value of this property.Notes to Callers
Clients that poll for operation status (as opposed to waiting on a synchronization object) use this property to determine the status of the operation.
The following example shows how to use the property of the IAsyncResult to discover when an asynchronous call completes. In this case, the asynchronous call is made by using the BeginInvoke method of a delegate. You might use the property to poll for completion when making the asynchronous call from a thread that services the user interface. Polling for completion allows the calling thread to continue executing while the asynchronous call executes on a ThreadPool thread.
The example consists of two classes: the class that contains the method that is called asynchronously, and the class that contains the Main method that makes the call.
For more information and more examples of calling methods asynchronously by using delegates, see Calling Synchronous Methods Asynchronously.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)