Udostępnij za pośrednictwem


StorageProgress Class

Definition

Holds information about the progress data transfers for both request and response streams in a single operation.

public sealed class StorageProgress
type StorageProgress = class
Public NotInheritable Class StorageProgress
Inheritance
StorageProgress

Examples

CancellationToken cancellationToken = new CancellationToken();
IProgress<StorageProgress> progressHandler = new Progress<StorageProgress>(
    progress => Console.WriteLine("Progress: {0} bytes transferred", progress.BytesTransferred)
    );

await blob.UploadFromStreamAsync(
    srcStream,
    default(AccessCondition),
    default(BlobRequestOptions),
    default(OperationContext),
    progressHandler,
    cancellationToken
    );

Constructors

StorageProgress(Int64)

Creates a StorageProgress object.

Properties

BytesTransferred

Progress in bytes of the request data transfer.

Applies to