CloudBlob.DownloadRangeToStreamAsync Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
DownloadRangeToStreamAsync(Stream, Nullable<Int64>, Nullable<Int64>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)
Inicia una operación asincrónica para descargar un intervalo de bytes de un blob a una secuencia.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DownloadRangeToStreamAsync (System.IO.Stream target, long? offset, long? length, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DownloadRangeToStreamAsync (target As Stream, offset As Nullable(Of Long), length As Nullable(Of Long), accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task
Parámetros
- accessCondition
- AccessCondition
Un objeto AccessCondition que representa la condición que debe cumplirse para continuar con la solicitud. Si es null
, no se usa ninguna condición.
- options
- BlobRequestOptions
Objeto BlobRequestOptions que especifica opciones adicionales para la solicitud.
- operationContext
- OperationContext
Objeto OperationContext que representa el contexto para la operación actual.
- cancellationToken
- CancellationToken
Un CancellationToken que se observará mientras se espera a que se complete la tarea.
Devoluciones
Objeto Task que representa la operación asincrónica.
- Atributos
Se aplica a
DownloadRangeToStreamAsync(Stream, Nullable<Int64>, Nullable<Int64>, AccessCondition, BlobRequestOptions, OperationContext)
Inicia una operación asincrónica para descargar un intervalo de bytes de un blob a una secuencia.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DownloadRangeToStreamAsync (System.IO.Stream target, long? offset, long? length, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
override this.DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
Public Overridable Function DownloadRangeToStreamAsync (target As Stream, offset As Nullable(Of Long), length As Nullable(Of Long), accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext) As Task
Parámetros
- accessCondition
- AccessCondition
Un objeto AccessCondition que representa la condición que debe cumplirse para continuar con la solicitud. Si es null
, no se usa ninguna condición.
- options
- BlobRequestOptions
Objeto BlobRequestOptions que especifica opciones adicionales para la solicitud.
- operationContext
- OperationContext
Objeto OperationContext que representa el contexto para la operación actual.
Devoluciones
Objeto Task que representa la operación asincrónica.
- Atributos
Se aplica a
DownloadRangeToStreamAsync(Stream, Nullable<Int64>, Nullable<Int64>, AccessCondition, BlobRequestOptions, OperationContext, IProgress<StorageProgress>, CancellationToken)
Inicia una operación asincrónica para descargar un intervalo de bytes de un blob a una secuencia.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DownloadRangeToStreamAsync (System.IO.Stream target, long? offset, long? length, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, IProgress<Microsoft.Azure.Storage.Core.Util.StorageProgress> progressHandler, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * IProgress<Microsoft.Azure.Storage.Core.Util.StorageProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * IProgress<Microsoft.Azure.Storage.Core.Util.StorageProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DownloadRangeToStreamAsync (target As Stream, offset As Nullable(Of Long), length As Nullable(Of Long), accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, progressHandler As IProgress(Of StorageProgress), cancellationToken As CancellationToken) As Task
Parámetros
- accessCondition
- AccessCondition
Un objeto AccessCondition que representa la condición que debe cumplirse para continuar con la solicitud. Si es null
, no se usa ninguna condición.
- options
- BlobRequestOptions
Objeto BlobRequestOptions que especifica opciones adicionales para la solicitud.
- operationContext
- OperationContext
Objeto OperationContext que representa el contexto para la operación actual.
- progressHandler
- IProgress<StorageProgress>
Objeto IProgress<T> para controlar StorageProgress los mensajes.
- cancellationToken
- CancellationToken
Un CancellationToken que se observará mientras se espera a que se complete la tarea.
Devoluciones
Objeto Task que representa la operación asincrónica.
- Atributos
Se aplica a
DownloadRangeToStreamAsync(Stream, Nullable<Int64>, Nullable<Int64>)
Inicia una operación asincrónica para descargar un intervalo de bytes de un blob a una secuencia.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DownloadRangeToStreamAsync (System.IO.Stream target, long? offset, long? length);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> -> System.Threading.Tasks.Task
override this.DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> -> System.Threading.Tasks.Task
Public Overridable Function DownloadRangeToStreamAsync (target As Stream, offset As Nullable(Of Long), length As Nullable(Of Long)) As Task
Parámetros
Devoluciones
Objeto Task que representa la operación asincrónica.
- Atributos
Se aplica a
DownloadRangeToStreamAsync(Stream, Nullable<Int64>, Nullable<Int64>, CancellationToken)
Inicia una operación asincrónica para descargar un intervalo de bytes de un blob a una secuencia.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DownloadRangeToStreamAsync (System.IO.Stream target, long? offset, long? length, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DownloadRangeToStreamAsync : System.IO.Stream * Nullable<int64> * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DownloadRangeToStreamAsync (target As Stream, offset As Nullable(Of Long), length As Nullable(Of Long), cancellationToken As CancellationToken) As Task
Parámetros
- cancellationToken
- CancellationToken
Un CancellationToken que se observará mientras se espera a que se complete la tarea.
Devoluciones
Objeto Task que representa la operación asincrónica.
- Atributos
Se aplica a
Azure SDK for .NET