Click or drag to resize

AsyncResultVoidSetAsCompleted Method

Sets the status of the asynchronous call to completed.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public void SetAsCompleted(
	Exception exception,
	bool completedSynchronously
)

Parameters

exception
Type: SystemException
The Exception that was thrown by the executed method. If no pendingException was thrown, pass a reference.
completedSynchronously
Type: SystemBoolean
True if the asynchronous operation completed synchronously; otherwise, false.
Remarks
If the synchronous completion of the call is detected in the AsyncCallback delegate, it is probable that the thread that initiated the asynchronous operation is the current thread.

Notes to Implementers:
Most implementers of the IAsyncResult interface will not use this property and should return .
See Also