次の方法で共有


SharedGalleryResource.GetSharedGalleryImageAsync メソッド

定義

サブスクリプション ID またはテナント ID で共有ギャラリー イメージを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}
  • 操作IdSharedGalleryImages_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.SharedGalleryImageResource>> GetSharedGalleryImageAsync (string galleryImageName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSharedGalleryImageAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.SharedGalleryImageResource>>
override this.GetSharedGalleryImageAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.SharedGalleryImageResource>>
Public Overridable Function GetSharedGalleryImageAsync (galleryImageName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SharedGalleryImageResource))

パラメーター

galleryImageName
String

イメージ バージョンの一覧表示元となる共有ギャラリー イメージ定義の名前。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

galleryImageName は空の文字列であり、空でないと想定されていました。

galleryImageName が null です。

適用対象