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

PrivateStoreCollectionInfoResource.GetPrivateStoreCollectionOffersByContextsAsync 方法

定义

根据所需的上下文获取给定集合中所有产品/服务的列表。

  • 请求路径/提供程序/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/mapOffersToContexts
  • 操作IdPrivateStoreCollectionOffer_ListByContexts
public virtual Azure.AsyncPageable<Azure.ResourceManager.Marketplace.Models.CollectionOffersByContext> GetPrivateStoreCollectionOffersByContextsAsync (Azure.ResourceManager.Marketplace.Models.CollectionOffersByAllContextsPayload payload = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPrivateStoreCollectionOffersByContextsAsync : Azure.ResourceManager.Marketplace.Models.CollectionOffersByAllContextsPayload * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Marketplace.Models.CollectionOffersByContext>
override this.GetPrivateStoreCollectionOffersByContextsAsync : Azure.ResourceManager.Marketplace.Models.CollectionOffersByAllContextsPayload * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Marketplace.Models.CollectionOffersByContext>
Public Overridable Function GetPrivateStoreCollectionOffersByContextsAsync (Optional payload As CollectionOffersByAllContextsPayload = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CollectionOffersByContext)

参数

payload
CollectionOffersByAllContextsPayload

要使用的 CollectionOffersByAllContextsPayload。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 CollectionOffersByContext ,可能需要循环访问多个服务请求。

适用于