CloudBlockBlob Class

Definition

Represents a blob that is uploaded as a set of blocks.

public class CloudBlockBlob : Microsoft.WindowsAzure.Storage.Blob.CloudBlob, Microsoft.WindowsAzure.Storage.Blob.ICloudBlob
Inheritance
CloudBlockBlob
Implements

Inherited Members

Microsoft.WindowsAzure.Storage.Blob.CloudBlob

Constructors

CloudBlockBlob(Uri)

Initializes a new instance of the CloudBlockBlob class using an absolute URI to the blob.

CloudBlockBlob(Uri, StorageCredentials)

Initializes a new instance of the CloudBlockBlob class using an absolute URI to the blob.

CloudBlockBlob(StorageUri, Nullable<DateTimeOffset>, StorageCredentials)

Initializes a new instance of the CloudBlockBlob class using an absolute URI to the blob.

CloudBlockBlob(Uri, Nullable<DateTimeOffset>, StorageCredentials)

Initializes a new instance of the CloudBlockBlob class using an absolute URI to the blob.

Properties

StreamWriteSizeInBytes

Gets or sets the block size for writing to a block blob.

Methods

BeginCreateSnapshot(AsyncCallback, Object)

Begins an asynchronous operation to create a snapshot of the blob.

BeginCreateSnapshot(IDictionary<String,String>, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to create a snapshot of the blob.

BeginDownloadBlockList(AsyncCallback, Object)

Begins an asynchronous operation to return an enumerable collection of the blob's blocks, using the specified block list filter.

BeginDownloadBlockList(BlockListingFilter, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to return an enumerable collection of the blob's blocks, using the specified block list filter.

BeginDownloadText(AsyncCallback, Object)

Begins an asynchronous operation to download the blob's contents as a string.

BeginDownloadText(Encoding, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to download the blob's contents as a string.

BeginOpenWrite(AsyncCallback, Object)

Begins an asynchronous operation to open a stream for writing to the blob. If the blob already exists, it will be overwritten.

BeginOpenWrite(AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to open a stream for writing to the blob. If the blob already exists, it will be overwritten.

BeginPutBlock(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload a single block.

BeginPutBlock(String, Stream, String, AsyncCallback, Object)

Begins an asynchronous operation to upload a single block.

BeginPutBlockList(IEnumerable<String>, AsyncCallback, Object)

Begins an asynchronous operation to upload a list of blocks to a new or existing blob.

BeginPutBlockList(IEnumerable<String>, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload a list of blocks to a new or existing blob.

BeginSetStandardBlobTier(StandardBlobTier, AsyncCallback, Object)

Begins an asynchronous operation to set the tier of the blob on a standard storage account.

BeginSetStandardBlobTier(StandardBlobTier, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to set the tier of the blob on a standard storage account.

BeginStartCopy(CloudBlockBlob, AsyncCallback, Object)

Begins an asynchronous operation to start copying another block blob's contents, properties, and metadata to this block blob.

BeginStartCopy(CloudFile, AsyncCallback, Object)

Begins an asynchronous operation to start copying a file's contents, properties, and metadata to this block blob.

BeginStartCopy(CloudBlockBlob, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to start copying another block blob's contents, properties, and metadata to this block blob.

BeginStartCopy(CloudFile, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to start copying a file's contents, properties, and metadata to this block blob.

BeginUploadFromByteArray(Byte[], Int32, Int32, AsyncCallback, Object)

Begins an asynchronous operation to upload the contents of a byte array to a blob. If the blob already exists, it will be overwritten.

BeginUploadFromByteArray(Byte[], Int32, Int32, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload the contents of a byte array to a blob. If the blob already exists, it will be overwritten.

BeginUploadFromFile(String, AsyncCallback, Object)

Begins an asynchronous operation to upload a file to a blob. If the blob already exists, it will be overwritten.

BeginUploadFromFile(String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload a file to a blob. If the blob already exists, it will be overwritten.

BeginUploadFromStream(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

BeginUploadFromStream(Stream, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

BeginUploadFromStream(Stream, Int64, AsyncCallback, Object)

Begins an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

BeginUploadFromStream(Stream, AsyncCallback, Object)

Begins an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

BeginUploadText(String, AsyncCallback, Object)

Begins an asynchronous operation to upload a string of text to a blob. If the blob already exists, it will be overwritten.

BeginUploadText(String, Encoding, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload a string of text to a blob. If the blob already exists, it will be overwritten.

CreateSnapshot(IDictionary<String,String>, AccessCondition, BlobRequestOptions, OperationContext)

Creates a snapshot of the blob.

CreateSnapshotAsync()

Initiates an asynchronous operation to create a snapshot of the blob.

CreateSnapshotAsync(CancellationToken)

Initiates an asynchronous operation to create a snapshot of the blob.

CreateSnapshotAsync(IDictionary<String,String>, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to create a snapshot of the blob.

CreateSnapshotAsync(IDictionary<String,String>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to create a snapshot of the blob.

DownloadBlockList(BlockListingFilter, AccessCondition, BlobRequestOptions, OperationContext)

Returns an enumerable collection of the blob's blocks, using the specified block list filter.

DownloadBlockListAsync()

Initiates an asynchronous operation to return an enumerable collection of the blob's blocks, using the specified block list filter.

DownloadBlockListAsync(CancellationToken)

Initiates an asynchronous operation to return an enumerable collection of the blob's blocks, using the specified block list filter.

DownloadBlockListAsync(BlockListingFilter, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to return an enumerable collection of the blob's blocks, using the specified block list filter.

DownloadBlockListAsync(BlockListingFilter, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to return an enumerable collection of the blob's blocks, using the specified block list filter.

DownloadText(Encoding, AccessCondition, BlobRequestOptions, OperationContext)

Downloads the blob's contents as a string.

DownloadTextAsync()

Initiates an asynchronous operation to download the blob's contents as a string.

DownloadTextAsync(CancellationToken)

Initiates an asynchronous operation to download the blob's contents as a string.

DownloadTextAsync(Encoding, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to download the blob's contents as a string.

DownloadTextAsync(Encoding, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to download the blob's contents as a string.

EndCreateSnapshot(IAsyncResult)

Ends an asynchronous operation to create a snapshot of the blob.

EndDownloadBlockList(IAsyncResult)

Ends an asynchronous operation to return an enumerable collection of the blob's blocks, using the specified block list filter.

EndDownloadText(IAsyncResult)

Ends an asynchronous operation to download the blob's contents as a string.

EndOpenWrite(IAsyncResult)

Ends an asynchronous operation to open a stream for writing to the blob.

EndPutBlock(IAsyncResult)

Ends an asynchronous operation to upload a single block.

EndPutBlockList(IAsyncResult)

Ends an asynchronous operation to upload a list of blocks to a new or existing blob.

EndSetStandardBlobTier(IAsyncResult)

Ends an asynchronous operation to set the tier of the blob on a standard storage account.

EndUploadFromByteArray(IAsyncResult)

Ends an asynchronous operation to upload the contents of a byte array to a blob.

EndUploadFromFile(IAsyncResult)

Ends an asynchronous operation to upload a file to a blob.

EndUploadFromStream(IAsyncResult)

Ends an asynchronous operation to upload a stream to a block blob.

EndUploadText(IAsyncResult)

Ends an asynchronous operation to upload a string of text to a blob.

OpenWrite(AccessCondition, BlobRequestOptions, OperationContext)

Opens a stream for writing to the blob. If the blob already exists, it will be overwritten.

OpenWriteAsync()

Initiates an asynchronous operation to open a stream for writing to the blob. If the blob already exists, it will be overwritten.

OpenWriteAsync(CancellationToken)

Initiates an asynchronous operation to open a stream for writing to the blob. If the blob already exists, it will be overwritten.

OpenWriteAsync(AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to open a stream for writing to the blob. If the blob already exists, it will be overwritten.

OpenWriteAsync(AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to open a stream for writing to the blob. If the blob already exists, it will be overwritten.

PutBlock(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a single block.

PutBlockAsync(String, Stream, String)

Initiates an asynchronous operation to upload a single block.

PutBlockAsync(String, Stream, String, CancellationToken)

Initiates an asynchronous operation to upload a single block.

PutBlockAsync(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to upload a single block.

PutBlockAsync(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to upload a single block.

PutBlockList(IEnumerable<String>, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a list of blocks to a new or existing blob.

PutBlockListAsync(IEnumerable<String>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to upload a list of blocks to a new or existing blob.

PutBlockListAsync(IEnumerable<String>, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to upload a list of blocks to a new or existing blob.

PutBlockListAsync(IEnumerable<String>)

Initiates an asynchronous operation to upload a list of blocks to a new or existing blob.

PutBlockListAsync(IEnumerable<String>, CancellationToken)

Initiates an asynchronous operation to upload a list of blocks to a new or existing blob.

SetStandardBlobTier(StandardBlobTier, AccessCondition, BlobRequestOptions, OperationContext)

Sets the tier of the blob on a standard storage account.

SetStandardBlobTierAsync(StandardBlobTier)

Initiates an asynchronous operation to set the tier of the blob on a standard storage account.

SetStandardBlobTierAsync(StandardBlobTier, CancellationToken)

Initiates an asynchronous operation to set the tier of the blob on a standard storage account.

SetStandardBlobTierAsync(StandardBlobTier, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to set the tier of the blob on a standard storage account.

SetStandardBlobTierAsync(StandardBlobTier, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to set the tier of the blob on a standard storage account.

StartCopy(CloudBlockBlob, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext)

Begins an operation to start copying another block blob's contents, properties, and metadata to this block blob.

StartCopy(CloudFile, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext)

Begins an operation to start copying an Azure file's contents, properties, and metadata to this block blob.

StartCopyAsync(CloudBlockBlob, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to start copying another block blob's contents, properties, and metadata to this block blob.

StartCopyAsync(CloudFile, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to start copying a file's contents, properties, and metadata to this block blob.

StartCopyAsync(CloudBlockBlob, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to start copying another block blob's contents, properties, and metadata to this block blob.

StartCopyAsync(CloudFile, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to start copying a file's contents, properties, and metadata to this block blob.

StartCopyAsync(CloudBlockBlob, CancellationToken)

Initiates an asynchronous operation to start copying another block blob's contents, properties, and metadata to this block blob.

StartCopyAsync(CloudFile, CancellationToken)

Initiates an asynchronous operation to start copying a file's contents, properties, and metadata to this block blob.

StartCopyAsync(CloudFile)

Initiates an asynchronous operation to start copying a file's contents, properties, and metadata to this block blob.

StartCopyAsync(CloudBlockBlob)

Initiates an asynchronous operation to start copying another block blob's contents, properties, and metadata to this block blob.

UploadFromByteArray(Byte[], Int32, Int32, AccessCondition, BlobRequestOptions, OperationContext)

Uploads the contents of a byte array to a blob. If the blob already exists, it will be overwritten.

UploadFromByteArrayAsync(Byte[], Int32, Int32)

Initiates an asynchronous operation to upload the contents of a byte array to a blob. If the blob already exists, it will be overwritten.

UploadFromByteArrayAsync(Byte[], Int32, Int32, CancellationToken)

Initiates an asynchronous operation to upload the contents of a byte array to a blob. If the blob already exists, it will be overwritten.

UploadFromByteArrayAsync(Byte[], Int32, Int32, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to upload the contents of a byte array to a blob. If the blob already exists, it will be overwritten.

UploadFromByteArrayAsync(Byte[], Int32, Int32, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to upload the contents of a byte array to a blob. If the blob already exists, it will be overwritten.

UploadFromFile(String, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a file to the Blob service. If the blob already exists, it will be overwritten.

UploadFromFileAsync(String, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to upload a file to a blob. If the blob already exists, it will be overwritten.

UploadFromFileAsync(String, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to upload a file to a blob. If the blob already exists, it will be overwritten.

UploadFromFileAsync(String)

Initiates an asynchronous operation to upload a file to a blob. If the blob already exists, it will be overwritten.

UploadFromFileAsync(String, CancellationToken)

Initiates an asynchronous operation to upload a file to a blob. If the blob already exists, it will be overwritten.

UploadFromStream(Stream, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStream(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStreamAsync(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStreamAsync(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStreamAsync(Stream, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStreamAsync(Stream, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStreamAsync(Stream, CancellationToken)

Initiates an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStreamAsync(Stream, Int64)

Initiates an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStreamAsync(Stream)

Initiates an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

UploadFromStreamAsync(Stream, Int64, CancellationToken)

Initiates an asynchronous operation to upload a stream to a block blob. If the blob already exists, it will be overwritten.

UploadText(String, Encoding, AccessCondition, BlobRequestOptions, OperationContext)

Uploads a string of text to a blob. If the blob already exists, it will be overwritten.

UploadTextAsync(String, Encoding, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to upload a string of text to a blob. If the blob already exists, it will be overwritten.

UploadTextAsync(String)

Initiates an asynchronous operation to upload a string of text to a blob. If the blob already exists, it will be overwritten.

UploadTextAsync(String, CancellationToken)

Initiates an asynchronous operation to upload a string of text to a blob. If the blob already exists, it will be overwritten.

UploadTextAsync(String, Encoding, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to upload a string of text to a blob. If the blob already exists, it will be overwritten.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)