Exportera (0) Skriv ut
Visa allt
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

MessageSender.BeginSend Method

Begins an asynchronous request to send a brokered message.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public IAsyncResult BeginSend(
	BrokeredMessage message,
	AsyncCallback callback,
	Object state
)

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.

Gruppinnehåll

Lägg till
Visa:
© 2014 Microsoft