C# Класс Microsoft.WindowsAzure.StorageClient.CloudBlob

Represents a Windows Azure blob.
Наследование: IListBlobItem
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
ParseSizeAndLastModified ( HttpWebResponse response ) : void

Retreive ETag and LastModified date time from response.

Приватные методы

Метод Описание
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.

Описание методов

BeginCopyFromBlob() публичный Метод

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.
Результат IAsyncResult

BeginCopyFromBlob() публичный Метод

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.
Результат IAsyncResult

BeginCreateSnapshot() публичный Метод

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.
Результат IAsyncResult

BeginCreateSnapshot() публичный Метод

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.
Результат IAsyncResult

BeginCreateSnapshot() публичный Метод

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.
Результат IAsyncResult

BeginDelete() публичный Метод

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.
Результат IAsyncResult

BeginDelete() публичный Метод

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.
Результат IAsyncResult

BeginDeleteIfExists() публичный Метод

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.
Результат IAsyncResult

BeginDeleteIfExists() публичный Метод

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.
Результат IAsyncResult

BeginDownloadToStream() публичный Метод

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.
Результат IAsyncResult

BeginDownloadToStream() публичный Метод

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.
Результат IAsyncResult

BeginFetchAttributes() публичный Метод

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.
Результат IAsyncResult

BeginFetchAttributes() публичный Метод

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.
Результат IAsyncResult

BeginSetMetadata() публичный Метод

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.
Результат IAsyncResult

BeginSetMetadata() публичный Метод

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.
Результат IAsyncResult

BeginSetProperties() публичный Метод

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.
Результат IAsyncResult

BeginSetProperties() публичный Метод

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.
Результат IAsyncResult

BeginUploadFromStream() публичный Метод

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.
Результат IAsyncResult

BeginUploadFromStream() публичный Метод

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.
Результат IAsyncResult

CloudBlob() публичный Метод

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.
Результат System

CloudBlob() публичный Метод

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.
Результат System

CloudBlob() публичный Метод

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.
Результат System

CloudBlob() публичный Метод

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.
Результат System

CloudBlob() публичный Метод

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.
Результат System

CloudBlob() публичный Метод

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.
Результат System

CopyFromBlob() публичный Метод

Copies an existing blob's contents, properties, and metadata to a new blob.
public CopyFromBlob ( CloudBlob source ) : void
source CloudBlob The source blob.
Результат void

CopyFromBlob() публичный Метод

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.
Результат void

CreateSnapshot() публичный Метод

Creates a snapshot of the blob.
public CreateSnapshot ( ) : CloudBlob
Результат CloudBlob

CreateSnapshot() публичный Метод

Creates a snapshot of the blob.
public CreateSnapshot ( BlobRequestOptions options ) : CloudBlob
options BlobRequestOptions An object that specifies any additional options for the request.
Результат CloudBlob

CreateSnapshot() публичный Метод

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.
Результат CloudBlob

Delete() публичный Метод

Deletes the blob.
public Delete ( ) : void
Результат void

Delete() публичный Метод

Deletes the blob.
public Delete ( BlobRequestOptions options ) : void
options BlobRequestOptions An object that specifies any additional options for the request.
Результат void

DeleteIfExists() публичный Метод

Deletes the blob if it exists.
public DeleteIfExists ( ) : bool
Результат bool

DeleteIfExists() публичный Метод

Deletes the blob if it exists.
public DeleteIfExists ( BlobRequestOptions options ) : bool
options BlobRequestOptions An object that specifies any additional options for the request.
Результат bool

DownloadByteArray() публичный Метод

Downloads the blob's contents as an array of bytes.
public DownloadByteArray ( ) : byte[]
Результат byte[]

DownloadByteArray() публичный Метод

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.
Результат byte[]

DownloadText() публичный Метод

Downloads the blob's contents.
public DownloadText ( ) : string
Результат string

DownloadText() публичный Метод

Downloads the blob's contents.
public DownloadText ( BlobRequestOptions options ) : string
options BlobRequestOptions An object that specifies any additional options for the request.
Результат string

DownloadToFile() публичный Метод

Downloads the blob's contents to a file.
public DownloadToFile ( string fileName ) : void
fileName string The path and file name of the target file.
Результат void

DownloadToFile() публичный Метод

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.
Результат void

DownloadToStream() публичный Метод

Downloads the contents of a blob to a stream.
public DownloadToStream ( Stream target ) : void
target Stream The target stream.
Результат void

DownloadToStream() публичный Метод

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.
Результат void

EndUploadFromStream() публичный Метод

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.
Результат void

FetchAttributes() публичный Метод

Populates a blob's properties and metadata.
public FetchAttributes ( ) : void
Результат void

FetchAttributes() публичный Метод

Populates a blob's properties and metadata.
public FetchAttributes ( BlobRequestOptions options ) : void
options BlobRequestOptions An object that specifies any additional options for the request.
Результат void

GetSharedAccessSignature() публичный Метод

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.
Результат string

GetSharedAccessSignature() публичный Метод

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.
Результат string

OpenRead() публичный Метод

Opens a stream for reading the blob's contents.
public OpenRead ( ) : Microsoft.WindowsAzure.StorageClient.BlobStream
Результат Microsoft.WindowsAzure.StorageClient.BlobStream

OpenRead() публичный Метод

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.
Результат Microsoft.WindowsAzure.StorageClient.BlobStream

OpenWrite() публичный Метод

Opens a stream for writing to the blob.
public OpenWrite ( ) : Microsoft.WindowsAzure.StorageClient.BlobStream
Результат Microsoft.WindowsAzure.StorageClient.BlobStream

OpenWrite() публичный Метод

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.
Результат Microsoft.WindowsAzure.StorageClient.BlobStream

ParseSizeAndLastModified() защищенный Метод

Retreive ETag and LastModified date time from response.
protected ParseSizeAndLastModified ( HttpWebResponse response ) : void
response System.Net.HttpWebResponse The response to parse.
Результат void

SetMetadata() публичный Метод

Updates the blob's metadata.
public SetMetadata ( ) : void
Результат void

SetMetadata() публичный Метод

Updates the blob's metadata.
public SetMetadata ( BlobRequestOptions options ) : void
options BlobRequestOptions An object that specifies any additional options for the request.
Результат void

SetProperties() публичный Метод

Updates the blob's properties.
public SetProperties ( ) : void
Результат void

SetProperties() публичный Метод

Updates the blob's properties.
public SetProperties ( BlobRequestOptions options ) : void
options BlobRequestOptions An object that specifies any additional options for the request.
Результат void

UploadByteArray() публичный Метод

Uploads an array of bytes to a block blob.
public UploadByteArray ( byte content ) : void
content byte The array of bytes to upload.
Результат void

UploadByteArray() публичный Метод

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.
Результат void

UploadFile() публичный Метод

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.
Результат void

UploadFile() публичный Метод

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.
Результат void

UploadFromStream() публичный Метод

Uploads a stream to a block blob.
public UploadFromStream ( Stream source ) : void
source Stream The stream providing the blob content.
Результат void

UploadFromStream() публичный Метод

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.
Результат void

UploadText() публичный Метод

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.
Результат void

UploadText() публичный Метод

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.
Результат void