AsyncResult.Complete Method (Boolean, Exception)

Completes the operation when an exception occurred during the processing of the operation.

Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Public Class asyncResultImplementation
    Inherits AsyncResult
        Protected Overrides Sub Complete(completedSynchronously As Boolean, _
            exception As Exception)
            MyBase.Complete(completedSynchronously, exception)
        End Sub
End Class

Syntax

'Declaration
Overloads Protected Sub Complete( _
    ByVal completedSynchronously As Boolean, _
    ByVal exception As Exception _
)
protected void Complete(
    bool completedSynchronously, 
    Exception exception
);
protected:
void Complete(
    bool completedSynchronously,
    Exception^ exception
);
protected void Complete(
    boolean completedSynchronously, 
    Exception exception
);
protected function Complete(
     completedSynchronously : Boolean, 
     exception : Exception
) : Void;

Parameters

  • completedSynchronously
    true to indicate the operation was completed synchronously; otherwise, false.
  • exception
    The Exception that occurred during the processing of the operation.

Remarks

Use this version of Complete when you raise an exception during processing. The callback is notified and the exception is captured and stored for raising when the End method is called.

The IsCompleted property is set to true following a call to the Complete method.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

AsyncResult Class
AsyncResult Members
Microsoft.Web.Services3 Namespace
End
IsCompleted
AsynchronousOperationException