SALES: 1-800-867-1380
This topic has not yet been rated - Rate this topic

MessageSender.BeginSend Method

Begins an asynchronous request to send a brokered message.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
abstract BeginSend : 
        message:BrokeredMessage * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
override BeginSend : 
        message:BrokeredMessage * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 

Parameters

message
Type: Microsoft.ServiceBus.Messaging.BrokeredMessage
The brokered message to send.
callback
Type: System.AsyncCallback
A AsyncCallback delegate that references the method to invoke when the operation is complete.
state
Type: System.Object
A user-defined object that contains information about the receive operation. This object is passed to the EndSend(IAsyncResult) delegate when the operation is complete.

Return Value

Type: System.IAsyncResult
An IAsyncResult that references the asynchronous create a queue operation.
ExceptionCondition
TimeoutException

Thrown when operation times out. Timeout period is initialized through the MessagingFactorySettings. You may need to increase the value of the OperationTimeout to avoid this exception if the timeout value is relatively low.

ArgumentException

Thrown when the brokered message is null.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.