Skip to content

EventHubQueueCache.TryGetNextMessage(object, IBatchContainer?)

TryGetNextMessage(object, IBatchContainer?)

View source
[System.Obsolete(Use TryGetNextMessageWithResult instead.)]
public bool TryGetNextMessage(object cursorObj, out IBatchContainer? message)
Try to get the next message in the cache for the provided cursor.

Parameters

cursorObjobject
The cache cursor.
messageIBatchContainer?
The next message when one is available.

Returns

true when a message was returned; otherwise, false.