Delen via


EventDataBatch(Int64) Constructor

Definition

Creates a batch with the specified maximum size in bytes.

public EventDataBatch (long maxSizeInBytes);
new Microsoft.ServiceBus.Messaging.EventDataBatch : int64 -> Microsoft.ServiceBus.Messaging.EventDataBatch
Public Sub New (maxSizeInBytes As Long)

Parameters

maxSizeInBytes
Int64

The maximum size of the serialized batch message, a value of -1 indicates the allowed buffer size is unknown.

Remarks

It is recommended to call CreateBatch() or CreateBatch() to create an instance of this class because it uses the maximum message size negotiated with the service. When the application creates a batch using the constructor, it is responsible to ensure the maxSizeInBytes is permitted by the service.

Applies to