Data Batch. Try Add(EventData) Method
Tries to add an event data to the batch if permitted by the batch's size limit.
public bool TryAdd (Microsoft.Azure.EventHubs.EventData eventData);
member this.TryAdd : Microsoft.Azure.EventHubs.EventData -> bool
A boolean value indicating if the event data has been added to the batch or not.
Thrown when the EventData is null.
Thrown when the batch is already disposed.
This method checks the sizes of the batch, the EventData object and the specified limit to determine
if the EventData object can be added.