Sdílet prostřednictvím


ContainerRegistryContentClient.UploadBlobAsync Method

Definition

Overloads

UploadBlobAsync(BinaryData, CancellationToken)

Upload a container registry blob.

UploadBlobAsync(Stream, CancellationToken)

Upload a container registry blob.

UploadBlobAsync(BinaryData, CancellationToken)

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Upload a container registry blob.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>> UploadBlobAsync (BinaryData content, System.Threading.CancellationToken cancellationToken = default);
abstract member UploadBlobAsync : BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>>
override this.UploadBlobAsync : BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>>
Public Overridable Function UploadBlobAsync (content As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of UploadRegistryBlobResult))

Parameters

content
BinaryData

The blob content.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The result of the blob upload. The raw response associated with this result is the response from the final complete upload request.

Exceptions

If content is null.

Thrown when a failure is returned by the Container Registry service.

Applies to

UploadBlobAsync(Stream, CancellationToken)

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Upload a container registry blob.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>> UploadBlobAsync (System.IO.Stream content, System.Threading.CancellationToken cancellationToken = default);
abstract member UploadBlobAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>>
override this.UploadBlobAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>>
Public Overridable Function UploadBlobAsync (content As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of UploadRegistryBlobResult))

Parameters

content
Stream

The stream containing the blob data.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The result of the blob upload. The raw response associated with this result is the response from the final complete upload request.

Exceptions

If content is null.

Thrown when a failure is returned by the Container Registry service.

Applies to