共用方式為


ContainerRegistryContentClient.UploadBlob Method

Definition

Overloads

UploadBlob(BinaryData, CancellationToken)

Upload a container registry blob.

UploadBlob(Stream, CancellationToken)

Upload a container registry blob.

UploadBlob(BinaryData, CancellationToken)

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Upload a container registry blob.

public virtual Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult> UploadBlob (BinaryData content, System.Threading.CancellationToken cancellationToken = default);
abstract member UploadBlob : BinaryData * System.Threading.CancellationToken -> Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>
override this.UploadBlob : BinaryData * System.Threading.CancellationToken -> Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>
Public Overridable Function UploadBlob (content As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As 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

UploadBlob(Stream, CancellationToken)

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Upload a container registry blob.

public virtual Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult> UploadBlob (System.IO.Stream content, System.Threading.CancellationToken cancellationToken = default);
abstract member UploadBlob : System.IO.Stream * System.Threading.CancellationToken -> Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>
override this.UploadBlob : System.IO.Stream * System.Threading.CancellationToken -> Azure.Response<Azure.Containers.ContainerRegistry.UploadRegistryBlobResult>
Public Overridable Function UploadBlob (content As Stream, Optional cancellationToken As CancellationToken = Nothing) As 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