IInputChannel.EndWaitForMessage(IAsyncResult) 方法
定义
完成指定的异步等待消息操作。Completes the specified asynchronous wait-for-a-message operation.
public:
bool EndWaitForMessage(IAsyncResult ^ result);
public bool EndWaitForMessage (IAsyncResult result);
abstract member EndWaitForMessage : IAsyncResult -> bool
Public Function EndWaitForMessage (result As IAsyncResult) As Boolean
参数
- result
- IAsyncResult
IAsyncResult,标识要完成的 BeginWaitForMessage(TimeSpan, AsyncCallback, Object) 操作,并且从它检索最终结果。The IAsyncResult that identifies the BeginWaitForMessage(TimeSpan, AsyncCallback, Object) operation to finish, and from which to retrieve an end result.
返回
如果消息在超出 true 之前到达,则为 timeout;否则为 false。true if a message has arrived before the timeout has been exceeded; otherwise false.
示例
下面的代码演示如何实现此方法:The following code illustrates how to implement this method:
public bool EndWaitForMessage(IAsyncResult result)
{
return this.InnerChannel.EndWaitForMessage(result);
}