C# Class Microsoft.WindowsAzure.StorageClient.CloudBlob

Represents a Windows Azure blob.
Inheritance: IListBlobItem
Datei anzeigen Open project: richorama/azure-sdk-for-mono Class Usage Examples

Private Properties

Property Type Description
CloudBlob System
CloudBlob System
CloudBlob System
CloudBlob System
CloudBlob System
CloudBlob System
CopyFromBlobImpl System.Collections.Generic.IEnumerable
CreateSnapshotImpl System.Collections.Generic.IEnumerable
DeleteBlobIfExistsImpl System.Collections.Generic.IEnumerable
DeleteBlobImpl System.Collections.Generic.IEnumerable
DownloadToStreamImpl System.Collections.Generic.IEnumerable
DownloadToStreamSyncImpl SynchronousTask
EndCopyFromBlob void
EndCreateSnapshot CloudBlob
EndDelete void
EndDeleteIfExists bool
EndDownloadToStream void
EndFetchAttributes void
EndSetMetadata void
EndSetProperties void
FetchAttributesImpl System.Collections.Generic.IEnumerable
GetCanonicalName string
GetDefaultEncoding System.Text.Encoding
GetStreamImpl System.Collections.Generic.IEnumerable
GetStreamImpl System.Collections.Generic.IEnumerable
GetStreamSyncImpl Stream
ParallelUploadBlobWithBlocks System.Collections.Generic.IEnumerable
ParseBlobAddressQuery void
ParseQueryAndVerify void
ParseSnapshotTime System.DateTime
SetMetadataImpl System.Collections.Generic.IEnumerable
SetPropertiesImpl System.Collections.Generic.IEnumerable
UploadBlobWithBlocks System.Collections.Generic.IEnumerable
UploadBlobWithBuffering System.Collections.Generic.IEnumerable
UploadBlock System.Collections.Generic.IEnumerable
UploadBlockWithRetry Task
UploadData System.Collections.Generic.IEnumerable
UploadFromStreamDispatch System.Collections.Generic.IEnumerable
UploadFullBlobImpl System.Collections.Generic.IEnumerable
UploadFullBlobWithRetryImpl Task
UploadFullBlobWithRetrySequenceImpl System.Collections.Generic.IEnumerable
UploadUnknownSizeStream System.Collections.Generic.IEnumerable
VerifyNoWriteOperationForSnapshot void

Public Methods

Method Description
BeginCopyFromBlob ( CloudBlob source, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to copy a blob's contents, properties, and metadata to a new blob.

BeginCopyFromBlob ( CloudBlob source, BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to copy another blob's contents, properties, and metadata to the blob referenced by this CloudBlob object.

BeginCreateSnapshot ( AsyncCallback callback, object state ) : IAsyncResult

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

BeginCreateSnapshot ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

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

BeginCreateSnapshot ( NameValueCollection metadata, BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

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

BeginDelete ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to delete the blob.

BeginDelete ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to delete the blob.

BeginDeleteIfExists ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to delete the blob if it exists.

BeginDeleteIfExists ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to delete the blob if it exists.

BeginDownloadToStream ( Stream target, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to download the contents of a blob to a stream.

BeginDownloadToStream ( Stream target, BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to download the contents of a blob to a stream.

BeginFetchAttributes ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to populate the blob's properties and metadata.

BeginFetchAttributes ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to populate the blob's properties and metadata.

BeginSetMetadata ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to update the blob's metadata.

BeginSetMetadata ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to update the blob's metadata.

BeginSetProperties ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to update the blob's properties.

BeginSetProperties ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to update the blob's properties.

BeginUploadFromStream ( Stream source, AsyncCallback callback, object state ) : IAsyncResult

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

BeginUploadFromStream ( Stream source, BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult

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

CloudBlob ( CloudBlob cloudBlob ) : System

Initializes a new instance of the CloudBlob class based on an existing instance.

CloudBlob ( string blobAbsoluteUri ) : System

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

CloudBlob ( string blobUri, CloudBlobClient serviceClient ) : System

Initializes a new instance of the CloudBlob class using a relative URI to the blob.

CloudBlob ( string blobUri, System.DateTime snapshotTime, CloudBlobClient serviceClient ) : System

Initializes a new instance of the CloudBlob class using a relative URI to the blob, and the snapshot timestamp, if the blob is a snapshot.

CloudBlob ( string blobAbsoluteUri, System.DateTime snapshotTime, StorageCredentials credentials ) : System

Initializes a new instance of the CloudBlob class using an absolute URI to the blob, and the snapshot timestamp, if the blob is a snapshot.

CloudBlob ( string blobAbsoluteUri, StorageCredentials credentials ) : System

Initializes a new instance of the CloudBlob class using an absolute URI to the blob and a set of credentials.

CopyFromBlob ( CloudBlob source ) : void

Copies an existing blob's contents, properties, and metadata to a new blob.

CopyFromBlob ( CloudBlob source, BlobRequestOptions options ) : void

Copies a blob's contents, properties, and metadata to a new blob.

CreateSnapshot ( ) : CloudBlob

Creates a snapshot of the blob.

CreateSnapshot ( BlobRequestOptions options ) : CloudBlob

Creates a snapshot of the blob.

CreateSnapshot ( NameValueCollection metadata, BlobRequestOptions options ) : CloudBlob

Creates a snapshot of the blob.

Delete ( ) : void

Deletes the blob.

Delete ( BlobRequestOptions options ) : void

Deletes the blob.

DeleteIfExists ( ) : bool

Deletes the blob if it exists.

DeleteIfExists ( BlobRequestOptions options ) : bool

Deletes the blob if it exists.

DownloadByteArray ( ) : byte[]

Downloads the blob's contents as an array of bytes.

DownloadByteArray ( BlobRequestOptions options ) : byte[]

Downloads the blob's contents as an array of bytes.

DownloadText ( ) : string

Downloads the blob's contents.

DownloadText ( BlobRequestOptions options ) : string

Downloads the blob's contents.

DownloadToFile ( string fileName ) : void

Downloads the blob's contents to a file.

DownloadToFile ( string fileName, BlobRequestOptions options ) : void

Downloads the blob's contents to a file.

DownloadToStream ( Stream target ) : void

Downloads the contents of a blob to a stream.

DownloadToStream ( Stream target, BlobRequestOptions options ) : void

Downloads the contents of a blob to a stream.

EndUploadFromStream ( IAsyncResult asyncResult ) : void

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

FetchAttributes ( ) : void

Populates a blob's properties and metadata.

FetchAttributes ( BlobRequestOptions options ) : void

Populates a blob's properties and metadata.

GetSharedAccessSignature ( Microsoft.WindowsAzure.StorageClient.SharedAccessPolicy policy ) : string

Returns a shared access signature for the blob.

GetSharedAccessSignature ( Microsoft.WindowsAzure.StorageClient.SharedAccessPolicy policy, string groupPolicyIdentifier ) : string

Returns a shared access signature for the blob.

OpenRead ( ) : Microsoft.WindowsAzure.StorageClient.BlobStream

Opens a stream for reading the blob's contents.

OpenRead ( BlobRequestOptions options ) : Microsoft.WindowsAzure.StorageClient.BlobStream

Opens a stream for reading the blob's contents.

OpenWrite ( ) : Microsoft.WindowsAzure.StorageClient.BlobStream

Opens a stream for writing to the blob.

OpenWrite ( BlobRequestOptions options ) : Microsoft.WindowsAzure.StorageClient.BlobStream

Opens a stream for writing to the blob.

SetMetadata ( ) : void

Updates the blob's metadata.

SetMetadata ( BlobRequestOptions options ) : void

Updates the blob's metadata.

SetProperties ( ) : void

Updates the blob's properties.

SetProperties ( BlobRequestOptions options ) : void

Updates the blob's properties.

UploadByteArray ( byte content ) : void

Uploads an array of bytes to a block blob.

UploadByteArray ( byte content, BlobRequestOptions options ) : void

Uploads an array of bytes to a blob.

UploadFile ( string fileName ) : void

Uploads a file from the file system to a block blob.

UploadFile ( string fileName, BlobRequestOptions options ) : void

Uploads a file from the file system to a block blob.

UploadFromStream ( Stream source ) : void

Uploads a stream to a block blob.

UploadFromStream ( Stream source, BlobRequestOptions options ) : void

Uploads a stream to a block blob.

UploadText ( string content ) : void

Uploads a string of text to a block blob.

UploadText ( string content, Encoding encoding, BlobRequestOptions options ) : void

Uploads a string of text to a block blob.

Protected Methods

Method Description
ParseSizeAndLastModified ( HttpWebResponse response ) : void

Retreive ETag and LastModified date time from response.

Private Methods

Method Description
CloudBlob ( Microsoft.WindowsAzure.StorageClient.BlobAttributes attributes, CloudBlobClient serviceClient, string snapshotTime ) : System

Initializes a new instance of the CloudBlob class with existing attributes.

CloudBlob ( bool usePathStyleUris, string blobAbsoluteUri ) : System

Initializes a new instance of the CloudBlob class with the given absolute Uri.

CloudBlob ( string blobUri, CloudBlobClient serviceClient, CloudBlobContainer containerReference ) : System

Initializes a new instance of the CloudBlob class using the specified blob Uri. Note that this is just a reference to a blob instance and no requests are issued to the service yet to update the blob properties, attribute or metaddata. FetchAttributes is the API that issues such request to the service.

CloudBlob ( string blobUri, System.DateTime snapshotTime, CloudBlobClient serviceClient, CloudBlobContainer containerReference ) : System

Initializes a new instance of the CloudBlob class using the specified relative blob Uri. If snapshotTime is not null, the blob instance represents a Snapshot. Note that this is just a reference to a blob instance and no requests are issued to the service yet to update the blob properties, attribute or metaddata. FetchAttributes is the API that issues such request to the service.

CloudBlob ( string blobAbsoluteUri, StorageCredentials credentials, bool usePathStyleUris ) : System

Initializes a new instance of the CloudBlob class creating a new service client.

CloudBlob ( string blobAbsoluteUri, bool usePathStyleUris ) : System

Initializes a new instance of the CloudBlob class.

Any authentication information inside the address will be used. Otherwise a blob for anonymous access is created. Any snapshot information as part of the address will be recorded Explicity specify whether to use host style or path style Uri

CopyFromBlobImpl ( CloudBlob source, BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Implementation of the CopyFromBlob method.

CreateSnapshotImpl ( NameValueCollection metadata, BlobRequestOptions options, Action setResult ) : System.Collections.Generic.IEnumerable

Implementation for the CreateSnapshot method.

If the metadata parameter is null then no metadata is associated with the request.

DeleteBlobIfExistsImpl ( BlobRequestOptions options, Action setResult ) : System.Collections.Generic.IEnumerable

Implementation for the DeleteIfExists method.

DeleteBlobImpl ( BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Implements the DeleteBlob method.

DownloadToStreamImpl ( Stream target, BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Implements the DownloadToStream method.

DownloadToStreamSyncImpl ( Stream target, BlobRequestOptions options ) : SynchronousTask

Implements the DownloadToStream method.

EndCopyFromBlob ( IAsyncResult asyncResult ) : void
EndCreateSnapshot ( IAsyncResult asyncResult ) : CloudBlob
EndDelete ( IAsyncResult asyncResult ) : void
EndDeleteIfExists ( IAsyncResult asyncResult ) : bool
EndDownloadToStream ( IAsyncResult asyncResult ) : void
EndFetchAttributes ( IAsyncResult asyncResult ) : void
EndSetMetadata ( IAsyncResult asyncResult ) : void
EndSetProperties ( IAsyncResult asyncResult ) : void
FetchAttributesImpl ( BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Implements the FetchAttributes method.

GetCanonicalName ( bool ignoreSnapshotTime ) : string

Gets the canonical name of the blob, formatted as /<account-name>/<container-name>/<blob-name>. If ignoreSnapshotTime is false and this blob is a snapshot, the canonical name is augmented with a query of the form ?snapshot=<snapshot-time>.

This is used by both Shared Access and Copy blob operations.

Used by both Shared Access and Copy blob operation.

GetDefaultEncoding ( ) : Encoding

Gets the default encoding for the blob, which is UTF-8.

GetStreamImpl ( BlobRequestOptions options, Action setResult ) : System.Collections.Generic.IEnumerable

Implements getting the stream without specifying a range.

GetStreamImpl ( BlobRequestOptions options, long offset, long count, Action setResult ) : System.Collections.Generic.IEnumerable

Implements getting the stream.

GetStreamSyncImpl ( BlobRequestOptions options ) : Stream

Implements getting the stream without specifying a range.

ParallelUploadBlobWithBlocks ( Stream source, long blockSize, BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Uploads the blob in parallel with blocks.

ParseBlobAddressQuery ( string query, string &snapshot, StorageCredentialsSharedAccessSignature &sasCreds ) : void

Parses the blob address query and returns snapshot and SAS.

ParseQueryAndVerify ( Uri completeUri, CloudBlobClient existingClient, bool usePathStyleUris ) : void

Parse Uri for any snapshot and SAS (Shared access signature) information. Validate that no other query parameters are passed in.

Any snapshot information will be saved. Any SAS information will be recorded as corresponding credentials instance. If existingClient is passed in, any SAS information found will not be supported. Otherwise a new client is created based on SAS information or as anonymous credentials.

ParseSnapshotTime ( string snapshotTime ) : System.DateTime

Parses the snapshot time.

SetMetadataImpl ( BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Implementation for the SetMetadata method.

SetPropertiesImpl ( BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Implementation for the SetProperties method.

UploadBlobWithBlocks ( Stream source, BlobRequestOptions options, long blockSize ) : System.Collections.Generic.IEnumerable

Uploads the blob with blocks.

UploadBlobWithBuffering ( Stream source, BlobRequestOptions options, long blockSize ) : System.Collections.Generic.IEnumerable

Uploads the blob with buffering.

UploadBlock ( Stream source, string blockId, string contentMD5, BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Uploads the block.

UploadBlockWithRetry ( Stream source, string blockId, string contentMD5, BlobRequestOptions options ) : Task

Uploads the block with retry.

UploadData ( HttpWebRequest request, Stream source, Action result ) : System.Collections.Generic.IEnumerable

Uploads the data into the web request.

UploadFromStreamDispatch ( Stream source, BlobRequestOptions options ) : System.Collections.Generic.IEnumerable
UploadFullBlobImpl ( Stream source, BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Uploads the full blob.

UploadFullBlobWithRetryImpl ( Stream source, BlobRequestOptions options ) : Task

Uploads the full blob with retry.

UploadFullBlobWithRetrySequenceImpl ( Stream source, BlobRequestOptions options ) : System.Collections.Generic.IEnumerable

Uploads the full blob with a retry sequence.

UploadUnknownSizeStream ( Stream source, BlobRequestOptions options, long blockSize ) : System.Collections.Generic.IEnumerable

Uploads a stream that doesn't have a known length. In this case we can't do any optimizations like creating a request before we read all of the data.

This is implemented by creating a BlobStream and using that to buffer data until we have sufficient amount to be sent.

VerifyNoWriteOperationForSnapshot ( ) : void

Verifies that write operation is not done for snapshot.

Method Details

BeginCopyFromBlob() public method

Begins an asynchronous operation to copy a blob's contents, properties, and metadata to a new blob.
public BeginCopyFromBlob ( CloudBlob source, AsyncCallback callback, object state ) : IAsyncResult
source CloudBlob The source blob.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginCopyFromBlob() public method

Begins an asynchronous operation to copy another blob's contents, properties, and metadata to the blob referenced by this CloudBlob object.
public BeginCopyFromBlob ( CloudBlob source, BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
source CloudBlob The source blob.
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginCreateSnapshot() public method

Begins an asynchronous operation to create a snapshot of the blob.
public BeginCreateSnapshot ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginCreateSnapshot() public method

Begins an asynchronous operation to create a snapshot of the blob.
public BeginCreateSnapshot ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginCreateSnapshot() public method

Begins an asynchronous operation to create a snapshot of the blob.
public BeginCreateSnapshot ( NameValueCollection metadata, BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
metadata System.Collections.Specialized.NameValueCollection A collection of name-value pairs defining the metadata of the snapshot.
options BlobRequestOptions An object that specifies any additional options for the request, or null.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDelete() public method

Begins an asynchronous operation to delete the blob.
public BeginDelete ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDelete() public method

Begins an asynchronous operation to delete the blob.
public BeginDelete ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDeleteIfExists() public method

Begins an asynchronous operation to delete the blob if it exists.
public BeginDeleteIfExists ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDeleteIfExists() public method

Begins an asynchronous operation to delete the blob if it exists.
public BeginDeleteIfExists ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDownloadToStream() public method

Begins an asynchronous operation to download the contents of a blob to a stream.
public BeginDownloadToStream ( Stream target, AsyncCallback callback, object state ) : IAsyncResult
target Stream The target stream.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDownloadToStream() public method

Begins an asynchronous operation to download the contents of a blob to a stream.
public BeginDownloadToStream ( Stream target, BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
target Stream The target stream.
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginFetchAttributes() public method

Begins an asynchronous operation to populate the blob's properties and metadata.
public BeginFetchAttributes ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginFetchAttributes() public method

Begins an asynchronous operation to populate the blob's properties and metadata.
public BeginFetchAttributes ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginSetMetadata() public method

Begins an asynchronous operation to update the blob's metadata.
public BeginSetMetadata ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginSetMetadata() public method

Begins an asynchronous operation to update the blob's metadata.
public BeginSetMetadata ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginSetProperties() public method

Begins an asynchronous operation to update the blob's properties.
public BeginSetProperties ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginSetProperties() public method

Begins an asynchronous operation to update the blob's properties.
public BeginSetProperties ( BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginUploadFromStream() public method

Begins an asynchronous operation to upload a stream to a block blob.
public BeginUploadFromStream ( Stream source, AsyncCallback callback, object state ) : IAsyncResult
source Stream The stream providing the blob content.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginUploadFromStream() public method

Begins an asynchronous operation to upload a stream to a block blob.
public BeginUploadFromStream ( Stream source, BlobRequestOptions options, AsyncCallback callback, object state ) : IAsyncResult
source Stream The stream providing the blob content.
options BlobRequestOptions An object that specifies any additional options for the request.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

CloudBlob() public method

Initializes a new instance of the CloudBlob class based on an existing instance.
public CloudBlob ( CloudBlob cloudBlob ) : System
cloudBlob CloudBlob An existing reference to a blob.
return System

CloudBlob() public method

Initializes a new instance of the CloudBlob class using an absolute URI to the blob.
public CloudBlob ( string blobAbsoluteUri ) : System
blobAbsoluteUri string The absolute URI to the blob.
return System

CloudBlob() public method

Initializes a new instance of the CloudBlob class using a relative URI to the blob.
public CloudBlob ( string blobUri, CloudBlobClient serviceClient ) : System
blobUri string The relative URI to the blob, beginning with the container name.
serviceClient CloudBlobClient A client object that specifies the endpoint for the Blob service.
return System

CloudBlob() public method

Initializes a new instance of the CloudBlob class using a relative URI to the blob, and the snapshot timestamp, if the blob is a snapshot.
public CloudBlob ( string blobUri, System.DateTime snapshotTime, CloudBlobClient serviceClient ) : System
blobUri string The relative URI to the blob, beginning with the container name.
snapshotTime System.DateTime The snapshot timestamp, if the blob is a snapshot.
serviceClient CloudBlobClient A client object that specifies the endpoint for the Blob service.
return System

CloudBlob() public method

Initializes a new instance of the CloudBlob class using an absolute URI to the blob, and the snapshot timestamp, if the blob is a snapshot.
public CloudBlob ( string blobAbsoluteUri, System.DateTime snapshotTime, StorageCredentials credentials ) : System
blobAbsoluteUri string The absolute URI to the blob.
snapshotTime System.DateTime The snapshot timestamp, if the blob is a snapshot.
credentials StorageCredentials The account credentials.
return System

CloudBlob() public method

Initializes a new instance of the CloudBlob class using an absolute URI to the blob and a set of credentials.
public CloudBlob ( string blobAbsoluteUri, StorageCredentials credentials ) : System
blobAbsoluteUri string The absolute URI to the blob.
credentials StorageCredentials The account credentials.
return System

CopyFromBlob() public method

Copies an existing blob's contents, properties, and metadata to a new blob.
public CopyFromBlob ( CloudBlob source ) : void
source CloudBlob The source blob.
return void

CopyFromBlob() public method

Copies a blob's contents, properties, and metadata to a new blob.
public CopyFromBlob ( CloudBlob source, BlobRequestOptions options ) : void
source CloudBlob The source blob.
options BlobRequestOptions An object that specifies any additional options for the request.
return void

CreateSnapshot() public method

Creates a snapshot of the blob.
public CreateSnapshot ( ) : CloudBlob
return CloudBlob

CreateSnapshot() public method

Creates a snapshot of the blob.
public CreateSnapshot ( BlobRequestOptions options ) : CloudBlob
options BlobRequestOptions An object that specifies any additional options for the request.
return CloudBlob

CreateSnapshot() public method

Creates a snapshot of the blob.
public CreateSnapshot ( NameValueCollection metadata, BlobRequestOptions options ) : CloudBlob
metadata System.Collections.Specialized.NameValueCollection A collection of name-value pairs defining the metadata of the snapshot.
options BlobRequestOptions An object that specifies any additional options for the request, or null.
return CloudBlob

Delete() public method

Deletes the blob.
public Delete ( ) : void
return void

Delete() public method

Deletes the blob.
public Delete ( BlobRequestOptions options ) : void
options BlobRequestOptions An object that specifies any additional options for the request.
return void

DeleteIfExists() public method

Deletes the blob if it exists.
public DeleteIfExists ( ) : bool
return bool

DeleteIfExists() public method

Deletes the blob if it exists.
public DeleteIfExists ( BlobRequestOptions options ) : bool
options BlobRequestOptions An object that specifies any additional options for the request.
return bool

DownloadByteArray() public method

Downloads the blob's contents as an array of bytes.
public DownloadByteArray ( ) : byte[]
return byte[]

DownloadByteArray() public method

Downloads the blob's contents as an array of bytes.
public DownloadByteArray ( BlobRequestOptions options ) : byte[]
options BlobRequestOptions An object that specifies any additional options for the request.
return byte[]

DownloadText() public method

Downloads the blob's contents.
public DownloadText ( ) : string
return string

DownloadText() public method

Downloads the blob's contents.
public DownloadText ( BlobRequestOptions options ) : string
options BlobRequestOptions An object that specifies any additional options for the request.
return string

DownloadToFile() public method

Downloads the blob's contents to a file.
public DownloadToFile ( string fileName ) : void
fileName string The path and file name of the target file.
return void

DownloadToFile() public method

Downloads the blob's contents to a file.
public DownloadToFile ( string fileName, BlobRequestOptions options ) : void
fileName string The path and file name of the target file.
options BlobRequestOptions An object that specifies any additional options for the request.
return void

DownloadToStream() public method

Downloads the contents of a blob to a stream.
public DownloadToStream ( Stream target ) : void
target Stream The target stream.
return void

DownloadToStream() public method

Downloads the contents of a blob to a stream.
public DownloadToStream ( Stream target, BlobRequestOptions options ) : void
target Stream The target stream.
options BlobRequestOptions An object that specifies any additional options for the request.
return void

EndUploadFromStream() public method

Ends an asynchronous operation to upload a stream to a block blob.
public EndUploadFromStream ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult An that references the pending asynchronous operation.
return void

FetchAttributes() public method

Populates a blob's properties and metadata.
public FetchAttributes ( ) : void
return void

FetchAttributes() public method

Populates a blob's properties and metadata.
public FetchAttributes ( BlobRequestOptions options ) : void
options BlobRequestOptions An object that specifies any additional options for the request.
return void

GetSharedAccessSignature() public method

Returns a shared access signature for the blob.
Thrown if the current credentials don't support creating a shared access signature. Thrown if blob is a snapshot.
public GetSharedAccessSignature ( Microsoft.WindowsAzure.StorageClient.SharedAccessPolicy policy ) : string
policy Microsoft.WindowsAzure.StorageClient.SharedAccessPolicy The access policy for the shared access signature.
return string

GetSharedAccessSignature() public method

Returns a shared access signature for the blob.
Thrown if the current credentials don't support creating a shared access signature. Thrown if blob is a snapshot.
public GetSharedAccessSignature ( Microsoft.WindowsAzure.StorageClient.SharedAccessPolicy policy, string groupPolicyIdentifier ) : string
policy Microsoft.WindowsAzure.StorageClient.SharedAccessPolicy The access policy for the shared access signature.
groupPolicyIdentifier string A container-level access policy.
return string

OpenRead() public method

Opens a stream for reading the blob's contents.
public OpenRead ( ) : Microsoft.WindowsAzure.StorageClient.BlobStream
return Microsoft.WindowsAzure.StorageClient.BlobStream

OpenRead() public method

Opens a stream for reading the blob's contents.
public OpenRead ( BlobRequestOptions options ) : Microsoft.WindowsAzure.StorageClient.BlobStream
options BlobRequestOptions An object that specifies any additional options for the request.
return Microsoft.WindowsAzure.StorageClient.BlobStream

OpenWrite() public method

Opens a stream for writing to the blob.
public OpenWrite ( ) : Microsoft.WindowsAzure.StorageClient.BlobStream
return Microsoft.WindowsAzure.StorageClient.BlobStream

OpenWrite() public method

Opens a stream for writing to the blob.
public OpenWrite ( BlobRequestOptions options ) : Microsoft.WindowsAzure.StorageClient.BlobStream
options BlobRequestOptions An object that specifies any additional options for the request.
return Microsoft.WindowsAzure.StorageClient.BlobStream

ParseSizeAndLastModified() protected method

Retreive ETag and LastModified date time from response.
protected ParseSizeAndLastModified ( HttpWebResponse response ) : void
response System.Net.HttpWebResponse The response to parse.
return void

SetMetadata() public method

Updates the blob's metadata.
public SetMetadata ( ) : void
return void

SetMetadata() public method

Updates the blob's metadata.
public SetMetadata ( BlobRequestOptions options ) : void
options BlobRequestOptions An object that specifies any additional options for the request.
return void

SetProperties() public method

Updates the blob's properties.
public SetProperties ( ) : void
return void

SetProperties() public method

Updates the blob's properties.
public SetProperties ( BlobRequestOptions options ) : void
options BlobRequestOptions An object that specifies any additional options for the request.
return void

UploadByteArray() public method

Uploads an array of bytes to a block blob.
public UploadByteArray ( byte content ) : void
content byte The array of bytes to upload.
return void

UploadByteArray() public method

Uploads an array of bytes to a blob.
public UploadByteArray ( byte content, BlobRequestOptions options ) : void
content byte The array of bytes to upload.
options BlobRequestOptions An object that specifies any additional options for the request.
return void

UploadFile() public method

Uploads a file from the file system to a block blob.
public UploadFile ( string fileName ) : void
fileName string The path and file name of the file to upload.
return void

UploadFile() public method

Uploads a file from the file system to a block blob.
public UploadFile ( string fileName, BlobRequestOptions options ) : void
fileName string The path and file name of the file to upload.
options BlobRequestOptions An object that specifies any additional options for the request.
return void

UploadFromStream() public method

Uploads a stream to a block blob.
public UploadFromStream ( Stream source ) : void
source Stream The stream providing the blob content.
return void

UploadFromStream() public method

Uploads a stream to a block blob.
public UploadFromStream ( Stream source, BlobRequestOptions options ) : void
source Stream The stream providing the blob content.
options BlobRequestOptions An object that specifies any additional options for the request.
return void

UploadText() public method

Uploads a string of text to a block blob.
public UploadText ( string content ) : void
content string The text to upload, encoded as a UTF-8 string.
return void

UploadText() public method

Uploads a string of text to a block blob.
public UploadText ( string content, Encoding encoding, BlobRequestOptions options ) : void
content string The text to upload.
encoding System.Text.Encoding An object that indicates the text encoding to use.
options BlobRequestOptions An object that specifies any additional options for the request.
return void