Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
该文档在 Azure Push Notifications 中说明NotificationHubClient.GetRegistrationsByTagAsync(string tag, int top)如下,
NotificationHubClient.GetRegistrationsByTagAsync(string tag, int top)
top (Int32) :获取注册的位置。
但我不知道顶部或位置代表什么。我发现只是使用但没有理由使用它 的一个例子。100
100
基本上,这意味着获得最多的顶级记录。
因此,如果您有 1000 个带有标签“A”的注册,那么 NotificationHubClient.GetRegistrationsByTagAsync("A", 42) 将返回 42 条记录。
但是,top 不能超过 100!NotificationHubClient.GetRegistrationsByTagAsync("A", 142) 只会返回 100 条记录。