Gets or sets the number of messages that the message receiver can simultaneously request.
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
'Declaration Public Overrides Property PrefetchCount As Integer Get Set 'Usage Dim instance As MessageSession Dim value As Integer value = instance.PrefetchCount instance.PrefetchCount = value
Property ValueType: System.Int32
The number of messages that the message receiver can simultaneously request.
You can use to fetch multiple messages from the server in the same round-trip. This can be useful in scenarios that need lower latency for receiving existing messages from a queue or subscription. Prefetch can also improve throughput depending upon the scenarios as the number of round-trips to the server are reduced.
Prefetch is disabled by default. You can enable it by using this property on the client. You must set before receiving the first message.