This documentation is archived and is not being maintained.

WebClientAsyncResult.CompletedSynchronously Property

Gets a value indicating whether the Begin call completed synchronously.

[Visual Basic]
Public Overridable ReadOnly Property CompletedSynchronously As _
   Boolean  Implements IAsyncResult.CompletedSynchronously
[C#]
public virtual bool CompletedSynchronously {get;}
[C++]
public: __property virtual bool get_CompletedSynchronously();
[JScript]
public function get CompletedSynchronously() : Boolean;

Property Value

true if the Begin call completed synchronously; otherwise, false.

Implements

IAsyncResult.CompletedSynchronously

Remarks

If CompletedSynchronously is set to true within the AsyncCallback delegate, it is probable that the thread that called BeginInvoke is the current thread. In this case, you should be careful about making another asynchronous Begin call from the callback method, since it can cause the stack to grow without bound if the calls continue to complete synchronously. Instead, the call should be completed at the original call site, outside the callback method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

WebClientAsyncResult Class | WebClientAsyncResult Members | System.Web.Services.Protocols Namespace

Show: