Bus Message Batch. Try Add Message(ServiceBusMessage) Method
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.
Attempts to add a message to the batch, ensuring that the size of the batch does not exceed its maximum. If the message is modified after being added to the batch, the batch will fail to send if the modification caused the batch to exceed the maximum allowable size. Therefore it is best to not modify a message after adding it to the batch.
public bool TryAddMessage (Azure.Messaging.ServiceBus.ServiceBusMessage message);
member this.TryAddMessage : Azure.Messaging.ServiceBus.ServiceBusMessage -> bool
Public Function TryAddMessage (message As ServiceBusMessage) As Boolean
The message to attempt to add to the batch.
true if the message was added; otherwise,
When a batch is sent, it will be locked for the duration of that operation. During this time,
no messages may be added to the batch. Calling
TryAdd while the batch is being sent will
result in an InvalidOperationException until the send has completed.
Gönderin ve geri bildirimi görüntüleyin