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

SharedGalleryImageVersionCollection.GetAllAsync 方法

定义

按订阅 ID 或租户 ID 列出共享库映像版本。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions
  • 操作IdSharedGalleryImageVersions_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.SharedGalleryImageVersionResource> GetAllAsync (Azure.ResourceManager.Compute.Models.SharedToValue? sharedTo = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : Nullable<Azure.ResourceManager.Compute.Models.SharedToValue> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.SharedGalleryImageVersionResource>
override this.GetAllAsync : Nullable<Azure.ResourceManager.Compute.Models.SharedToValue> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.SharedGalleryImageVersionResource>
Public Overridable Function GetAllAsync (Optional sharedTo As Nullable(Of SharedToValue) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SharedGalleryImageVersionResource)

参数

sharedTo
Nullable<SharedToValue>

用于确定在执行列出操作时要提取哪些共享库的查询参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 SharedGalleryImageVersionResource ,可能需要多个服务请求进行迭代。

适用于