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