Eksportuj (0) Drukuj
Rozwiń wszystko
EN
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.

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.

Zawartość społeczności

Dodaj
Pokaż:
© 2014 Microsoft