CloudPageBlob.CreateSnapshotAsync Method

Definition

Overloads

CreateSnapshotAsync(IDictionary<String,String>, AccessCondition, BlobRequestOptions, OperationContext, 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()

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, CancellationToken)

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

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob> CreateSnapshotAsync (System.Collections.Generic.IDictionary<string,string> metadata, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
Parameters
metadata
IDictionary<String,String>

A collection of name-value pairs defining the metadata of the snapshot.

accessCondition
AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object of type CloudPageBlob that represents the asynchronous operation.

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

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

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob> CreateSnapshotAsync (System.Collections.Generic.IDictionary<string,string> metadata, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext);
Parameters
metadata
IDictionary<String,String>

A collection of name-value pairs defining the metadata of the snapshot.

accessCondition
AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

A Task<TResult> object of type CloudPageBlob that represents the asynchronous operation.

CreateSnapshotAsync()

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

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob> CreateSnapshotAsync ();
Returns

A Task<TResult> object of type CloudPageBlob that represents the asynchronous operation.

CreateSnapshotAsync(CancellationToken)

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

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob> CreateSnapshotAsync (System.Threading.CancellationToken cancellationToken);
Parameters
cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object of type CloudPageBlob that represents the asynchronous operation.