你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PartitionReceiver.OnReceiveAsync(Int32, TimeSpan) 方法

定义

protected abstract System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.EventHubs.EventData>> OnReceiveAsync (int maxMessageCount, TimeSpan waitTime);
abstract member OnReceiveAsync : int * TimeSpan -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.EventHubs.EventData>>
Protected MustOverride Function OnReceiveAsync (maxMessageCount As Integer, waitTime As TimeSpan) As Task(Of IList(Of EventData))

参数

maxMessageCount
Int32
waitTime
TimeSpan

返回

适用于