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

GalleryCollection.Exists 方法

定义

检查 Azure 中是否存在资源。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/gallerys/{galleryName}
  • 操作IdGalleries_Get
public virtual Azure.Response<bool> Exists (string galleryName, Azure.ResourceManager.Compute.Models.SelectPermission? select = default, Azure.ResourceManager.Compute.Models.GalleryExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : string * Nullable<Azure.ResourceManager.Compute.Models.SelectPermission> * Nullable<Azure.ResourceManager.Compute.Models.GalleryExpand> * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : string * Nullable<Azure.ResourceManager.Compute.Models.SelectPermission> * Nullable<Azure.ResourceManager.Compute.Models.GalleryExpand> * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (galleryName As String, Optional select As Nullable(Of SelectPermission) = Nothing, Optional expand As Nullable(Of GalleryExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

参数

galleryName
String

共享映像库的名称。

select
Nullable<SelectPermission>

要应用于操作的 select 表达式。

expand
Nullable<GalleryExpand>

要应用于操作的展开查询选项。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

galleryName 是一个空字符串,预期为非空。

galleryName 为 null。

适用于