MessageSession.OnEndTryReceive(IAsyncResult, IEnumerable<BrokeredMessage>) Method

Definition

Executes the end try receive operation of the message receiver.

protected override bool OnEndTryReceive (IAsyncResult result, out System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> messages);
override this.OnEndTryReceive : IAsyncResult * seq -> bool
Protected Overrides Function OnEndTryReceive (result As IAsyncResult, ByRef messages As IEnumerable(Of BrokeredMessage)) As Boolean

Parameters

result
System.IAsyncResult

An System.IAsyncResult that references the asynchronous operation to try to receive messages.

messages
System.Collections.Generic.IEnumerable<BrokeredMessage>

When this method returns, contains the received message collection.

Returns

System.Boolean

true if it succeeds; false if it fails.

Applies to