Share via


ContainerRegistryContentClient.DownloadBlobTo Method

Definition

Overloads

DownloadBlobTo(String, String, CancellationToken)

Download a blob to a file specified by the path parameter.

DownloadBlobTo(String, Stream, CancellationToken)

Download a blob to a passed-in destination stream.

DownloadBlobTo(String, String, CancellationToken)

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Download a blob to a file specified by the path parameter.

public virtual Azure.Response DownloadBlobTo (string digest, string path, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadBlobTo : string * string * System.Threading.CancellationToken -> Azure.Response
override this.DownloadBlobTo : string * string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DownloadBlobTo (digest As String, path As String, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

digest
String

The digest of the blob to download.

path
String

A file path to write the downloaded content to.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The raw response corresponding to the final GET blob chunk request.

Exceptions

If path is null.

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

Applies to

DownloadBlobTo(String, Stream, CancellationToken)

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Download a blob to a passed-in destination stream.

public virtual Azure.Response DownloadBlobTo (string digest, System.IO.Stream destination, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadBlobTo : string * System.IO.Stream * System.Threading.CancellationToken -> Azure.Response
override this.DownloadBlobTo : string * System.IO.Stream * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DownloadBlobTo (digest As String, destination As Stream, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

digest
String

The digest of the blob to download.

destination
Stream

Destination for the downloaded blob.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The response corresponding to the final GET blob chunk request.

Exceptions

If destination is null.

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

Applies to