Microsoft.Azure.Storage.Blob.CloudAppendBlob
Represents an append blob, a type of blob where blocks of data are always committed to the end of the blob.
Gets or sets the number of bytes to buffer when writing to an append blob stream.
Initializes a new instance of the CloudAppendBlob class using an absolute URI to the blob.
Initializes a new instance of the CloudAppendBlob class using an absolute URI to the blob.
Initializes a new instance of the CloudAppendBlob class using an absolute URI to the blob.
public CloudAppendBlob(Uri blobAbsoluteUri, DateTimeOffset? snapshotTime, StorageCredentials credentials)
Initializes a new instance of the CloudAppendBlob class using an absolute URI to the blob.
Initializes a new instance of the CloudAppendBlob class using an absolute URI to the blob.
public CloudAppendBlob(StorageUri blobAbsoluteUri, DateTimeOffset? snapshotTime, StorageCredentials credentials)
Initializes a new instance of the CloudAppendBlob class using an absolute URI to the blob.
public CloudAppendBlob(StorageUri blobAbsoluteUri, DateTimeOffset? snapshotTime, CloudBlobClient client)
Initializes a new instance of the CloudAppendBlob class using an absolute URI to the blob.
Commits a new block of data to the end of the blob.
Commits a new block of data to the end of the blob.
public virtual Task<long> AppendBlockAsync(Stream blockData, Checksum contentChecksum, AccessCondition accesscondition, BlobRequestOptions options, OperationContext operationContext)
Commits a new block of data to the end of the blob.
public virtual Task<long> AppendBlockAsync(Stream blockData, Checksum contentChecksum, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Commits a new block of data to the end of the blob.
public virtual Task<long> AppendBlockAsync(Stream blockData, Checksum contentChecksum, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Commits a new block of data to the end of the blob.
public virtual Task<long> AppendBlockAsync(Uri sourceUri, long offset, long count, Checksum sourceContentChecksum, AccessCondition sourceAccessCondition, AccessCondition destAccessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Commits a new block of data to the end of the blob.
Appends the contents of a byte array to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromByteArrayAsync(byte[] buffer, int index, int count, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Appends the contents of a byte array to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromByteArrayAsync(byte[] buffer, int index, int count, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Appends the contents of a byte array to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromByteArrayAsync(byte[] buffer, int index, int count, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Appends the contents of a byte array to an append blob. Recommended only for single-writer scenarios.
Appends a file to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromFileAsync(string path, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Appends a file to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromFileAsync(string path, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Appends a file to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromFileAsync(string path, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Appends a file to an append blob. Recommended only for single-writer scenarios.
Appends a stream to an append blob. Recommended only for single-writer scenarios.
Appends a stream to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromStreamAsync(Stream source, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Appends a stream to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromStreamAsync(Stream source, long length, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Appends a stream to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromStreamAsync(Stream source, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Appends a stream to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromStreamAsync(Stream source, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Appends a stream to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromStreamAsync(Stream source, long length, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHelper, CancellationToken cancellationToken)
Appends a stream to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendFromStreamAsync(Stream source, long length, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Appends a stream to an append blob. Recommended only for single-writer scenarios.
Appends a string of text to an append blob.
public virtual Task AppendTextAsync(string content, Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Appends a string of text to an append blob. Recommended only for single-writer scenarios.
public virtual Task AppendTextAsync(string content, Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Appends a string of text to an append blob.
public virtual Task AppendTextAsync(string content, Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Appends a string of text to an append blob.
Creates an empty append blob. If the blob already exists, this operation will overwrite it. To throw an exception instead of overwriting the blob,
use CreateOrReplaceAsync.
public virtual Task CreateOrReplaceAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Creates an empty append blob. If the blob already exists, this operation will overwrite it. To throw an exception instead of overwriting the blob,
pass in an AccessCondition object generated using GenerateIfNotExistsCondition.
public virtual Task CreateOrReplaceAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Creates an empty append blob. If the blob already exists, this operation will overwrite it. To throw an exception instead of overwriting the blob,
pass in an AccessCondition object generated using GenerateIfNotExistsCondition.
Creates a snapshot of the blob.
public virtual Task<CloudAppendBlob> CreateSnapshotAsync(IDictionary<string, string> metadata, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Creates a snapshot of the blob.
public virtual Task<CloudAppendBlob> CreateSnapshotAsync(IDictionary<string, string> metadata, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Creates a snapshot of the blob.
Downloads the blob's contents as a string.
public virtual Task<string> DownloadTextAsync(Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Downloads the blob's contents as a string.
public virtual Task<string> DownloadTextAsync(Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Downloads the blob's contents as a string.
public virtual Task<string> DownloadTextAsync(Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Downloads the blob's contents as a string.
Opens a stream for writing to the blob.
public virtual Task<CloudBlobStream> OpenWriteAsync(bool createNew, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Opens a stream for writing to the blob.
public virtual Task<CloudBlobStream> OpenWriteAsync(bool createNew, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Opens a stream for writing to the blob.
Begins an operation to start copying an existing block blob's contents, properties, and metadata to a new blob.
public virtual Task<string> StartCopyAsync(CloudAppendBlob source, AccessCondition sourceAccessCondition, AccessCondition destAccessCondition, BlobRequestOptions options, OperationContext operationContext)
Begins an operation to start copying another block blob's contents, properties, and metadata to a new blob.
public virtual Task<string> StartCopyAsync(CloudAppendBlob source, AccessCondition sourceAccessCondition, AccessCondition destAccessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Begins an operation to start copying another append blob's contents, properties, and metadata to a new blob.
Uploads the contents of a byte array to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadFromByteArrayAsync(byte[] buffer, int index, int count, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Uploads the contents of a byte array to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadFromByteArrayAsync(byte[] buffer, int index, int count, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Uploads the contents of a byte array to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadFromByteArrayAsync(byte[] buffer, int index, int count, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Uploads the contents of a byte array to an append blob. If the blob already exists, it will be overwritten.
Uploads a file to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadFromFileAsync(string path, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Uploads a file to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadFromFileAsync(string path, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Uploads a file to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadFromFileAsync(string path, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Uploads a file to an append blob. If the blob already exists, it will be overwritten.
Uploads a stream to an append blob. If the blob already exists, it will be overwritten. Recommended only for single-writer scenarios.
Uploads a stream to an append blob. If the blob already exists, it will be overwritten. Recommended only for single-writer scenarios.
public virtual Task UploadFromStreamAsync(Stream source, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Uploads a stream to an append blob. If the blob already exists, it will be overwritten. Recommended only for single-writer scenarios.
public virtual Task UploadFromStreamAsync(Stream source, long length, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Uploads a stream to an append blob. If the blob already exists, it will be overwritten. Recommended only for single-writer scenarios.
public virtual Task UploadFromStreamAsync(Stream source, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Uploads a stream to an append blob. If the blob already exists, it will be overwritten. Recommended only for single-writer scenarios.
public virtual Task UploadFromStreamAsync(Stream source, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Uploads a stream to an append blob. If the blob already exists, it will be overwritten. Recommended only for single-writer scenarios.
public virtual Task UploadFromStreamAsync(Stream source, long length, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Uploads a stream to an append blob. If the blob already exists, it will be overwritten. Recommended only for single-writer scenarios.
public virtual Task UploadFromStreamAsync(Stream source, long length, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Uploads a stream to an append blob. If the blob already exists, it will be overwritten. Recommended only for single-writer scenarios.
Uploads a string of text to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadTextAsync(string content, Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Uploads a string of text to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadTextAsync(string content, Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Uploads a string of text to an append blob. If the blob already exists, it will be overwritten.
public virtual Task UploadTextAsync(string content, Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, IProgress<StorageProgress> progressHandler, CancellationToken cancellationToken)
Uploads a string of text to an append blob. If the blob already exists, it will be overwritten.