แก้ไข

แชร์ผ่าน


WebClientAsyncResult.CompletedSynchronously Property

Definition

Gets a value indicating whether the Begin call completed synchronously.

public:
 property bool CompletedSynchronously { bool get(); };
public bool CompletedSynchronously { get; }
member this.CompletedSynchronously : bool
Public ReadOnly Property CompletedSynchronously As Boolean

Property Value

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

Implements

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.

Applies to