WebClientAsyncResult::CompletedSynchronously Property

 

Gets a value indicating whether the Begin call completed synchronously.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
property bool CompletedSynchronously {
	virtual bool get() sealed;
}

Property Value

Type: System::Boolean

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

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.

.NET Framework
Available since 1.1
Return to top
Show: