Click or drag to resize

AsyncResultTSetAsCompleted 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(
	T result,
	Exception exception,
	bool completedSynchronously
)

Parameters

result
Type: T
The result that returned by the asynchronous operation.
exception
Type: SystemException
The Exception that was thrown by the executed method. If no pending Exception was thrown, pass a reference.
completedSynchronously
Type: SystemBoolean
if the asynchronous operation completed synchronously; otherwise, .
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