IReplyChannel.EndWaitForRequest(IAsyncResult) 方法

定義

完成指定的非同步「等候要求」(wait-for-a-request) 作業。Completes the specified asynchronous wait-for-a-request message operation.

public:
 bool EndWaitForRequest(IAsyncResult ^ result);
public bool EndWaitForRequest (IAsyncResult result);
abstract member EndWaitForRequest : IAsyncResult -> bool
Public Function EndWaitForRequest (result As IAsyncResult) As Boolean

參數

result
IAsyncResult

IAsyncResult,識別要完成並從其中擷取最終結果的 BeginWaitForRequest(TimeSpan, AsyncCallback, Object) 作業。The IAsyncResult that identifies the BeginWaitForRequest(TimeSpan, AsyncCallback, Object) operation to finish, and from which to retrieve an end result.

傳回

如果在超過指定時間間隔之前接收到要求,則為 true,否則為 falsetrue if a request is received before the specified interval of time elapses; otherwise false.

範例

下列程式碼說明如何實作這個方法:The following code illustrates how to implement this method:

public bool EndWaitForRequest(IAsyncResult result)
{
    return this.InnerChannel.EndWaitForRequest(result);
}

適用於