BlobServiceResource.GetBlobContainerAsync(String, CancellationToken) メソッド

定義

指定したコンテナーのプロパティを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}
  • 操作IdBlobContainers_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.BlobContainerResource>> GetBlobContainerAsync (string containerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBlobContainerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.BlobContainerResource>>
override this.GetBlobContainerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.BlobContainerResource>>
Public Overridable Function GetBlobContainerAsync (containerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BlobContainerResource))

パラメーター

containerName
String

指定したストレージ アカウント内の BLOB コンテナーの名前。 BLOB コンテナー名の長さは 3 ~ 63 文字で、数字、小文字、ダッシュ (-) のみを使用する必要があります。 すべてのダッシュ (-) 文字は、その直前および直後に文字または数字が使用されている必要があります。

cancellationToken
CancellationToken

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

戻り値

例外

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

containerName が null です。

適用対象