Redigera

Dela via


AsyncResult.CompletedSynchronously Property

Definition

Gets a value indicating whether the BeginInvoke call completed synchronously.

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

Property Value

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

Implements

Remarks

If it is detected that the BeginInvoke call completed synchronously in the AsyncCallback delegate, it is probable that the thread that called BeginInvoke is the current thread. Most providers of the IAsyncResult interface will not use the capability and will return a default false.

Current implementation of CompletedSynchronously always returns false.

Applies to