IInputChannel.EndTryReceive(IAsyncResult, Message) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Completes the specified asynchronous operation to receive a message.
public:
bool EndTryReceive(IAsyncResult ^ result, [Runtime::InteropServices::Out] System::ServiceModel::Channels::Message ^ % message);
public bool EndTryReceive (IAsyncResult result, out System.ServiceModel.Channels.Message message);
abstract member EndTryReceive : IAsyncResult * Message -> bool
Public Function EndTryReceive (result As IAsyncResult, ByRef message As Message) As Boolean
Parameters
- result
- IAsyncResult
The IAsyncResult returned by a call to the BeginTryReceive(TimeSpan, AsyncCallback, Object) method.
Returns
true
if a message is received before the specified interval of time elapses; otherwise false
.
Examples
The following code illustrates how to implement this method:
public bool EndTryReceive(IAsyncResult result, out Message message)
{
return TryReceiveAsyncResult<TChannel>.End(result, out message);
}
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.