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
Syntaxpublic void SetAsCompleted(
T result,
Exception exception,
bool completedSynchronously
)
Public Sub SetAsCompleted (
result As T,
exception As Exception,
completedSynchronously As Boolean
)
public:
void SetAsCompleted(
T result,
Exception^ exception,
bool completedSynchronously
)
member SetAsCompleted :
result : 'T *
exception : Exception *
completedSynchronously : bool -> unit
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, .
RemarksIf 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