CloudPageBlob.CreateAsync CloudPageBlob.CreateAsync CloudPageBlob.CreateAsync CloudPageBlob.CreateAsync Method

Definition

Overloads

CreateAsync(Int64) CreateAsync(Int64) CreateAsync(Int64) CreateAsync(Int64)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, use CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext).

CreateAsync(Int64, CancellationToken) CreateAsync(Int64, CancellationToken) CreateAsync(Int64, CancellationToken)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, use CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken).

CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext) CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext) CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, pass in an AccessCondition object generated using GenerateIfNotExistsCondition().

CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken) CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken) CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, pass in an AccessCondition object generated using GenerateIfNotExistsCondition().

CreateAsync(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken) CreateAsync(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken) CreateAsync(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, pass in an AccessCondition object generated using GenerateIfNotExistsCondition().

CreateAsync(Int64) CreateAsync(Int64) CreateAsync(Int64) CreateAsync(Int64)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, use CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext).

public:
 virtual System::Threading::Tasks::Task ^ CreateAsync(long size);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync (long size);
abstract member CreateAsync : int64 -> System.Threading.Tasks.Task
override this.CreateAsync : int64 -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (size As Long) As Task
Parameters
size
Int64 Int64 Int64 Int64

The maximum size of the blob, in bytes.

Returns

A Task object that represents the asynchronous operation.

CreateAsync(Int64, CancellationToken) CreateAsync(Int64, CancellationToken) CreateAsync(Int64, CancellationToken)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, use CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken).

public:
 virtual System::Threading::Tasks::Task ^ CreateAsync(long size, System::Threading::CancellationToken cancellationToken);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync (long size, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : int64 * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : int64 * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
size
Int64 Int64 Int64 Int64

The maximum size of the blob, in bytes.

cancellationToken
CancellationToken CancellationToken CancellationToken CancellationToken

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

Returns

A Task object that represents the asynchronous operation.

CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext) CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext) CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, pass in an AccessCondition object generated using GenerateIfNotExistsCondition().

public:
 virtual System::Threading::Tasks::Task ^ CreateAsync(long size, Microsoft::WindowsAzure::Storage::AccessCondition ^ accessCondition, Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions ^ options, Microsoft::WindowsAzure::Storage::OperationContext ^ operationContext);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync (long size, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext);
abstract member CreateAsync : int64 * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task
override this.CreateAsync : int64 * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task
Parameters
size
Int64 Int64 Int64 Int64

The maximum size of the blob, in bytes.

accessCondition
AccessCondition AccessCondition 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 BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext OperationContext

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

Returns

A Task object that represents the asynchronous operation.

CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken) CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken) CreateAsync(Int64, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, pass in an AccessCondition object generated using GenerateIfNotExistsCondition().

public:
 virtual System::Threading::Tasks::Task ^ CreateAsync(long size, Microsoft::WindowsAzure::Storage::AccessCondition ^ accessCondition, Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions ^ options, Microsoft::WindowsAzure::Storage::OperationContext ^ operationContext, System::Threading::CancellationToken cancellationToken);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync (long size, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : int64 * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : int64 * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
size
Int64 Int64 Int64 Int64

The maximum size of the blob, in bytes.

accessCondition
AccessCondition AccessCondition 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 BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext OperationContext

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

cancellationToken
CancellationToken CancellationToken CancellationToken CancellationToken

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

Returns

A Task object that represents the asynchronous operation.

CreateAsync(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken) CreateAsync(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken) CreateAsync(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to create a page blob. If the blob already exists, this operation will overwrite it. To throw an exception if the blob exists, instead of overwriting, pass in an AccessCondition object generated using GenerateIfNotExistsCondition().

public:
 virtual System::Threading::Tasks::Task ^ CreateAsync(long size, Nullable<Microsoft::WindowsAzure::Storage::Blob::PremiumPageBlobTier> premiumPageBlobTier, Microsoft::WindowsAzure::Storage::AccessCondition ^ accessCondition, Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions ^ options, Microsoft::WindowsAzure::Storage::OperationContext ^ operationContext, System::Threading::CancellationToken cancellationToken);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync (long size, Nullable<Microsoft.WindowsAzure.Storage.Blob.PremiumPageBlobTier> premiumPageBlobTier, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : int64 * Nullable<Microsoft.WindowsAzure.Storage.Blob.PremiumPageBlobTier> * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : int64 * Nullable<Microsoft.WindowsAzure.Storage.Blob.PremiumPageBlobTier> * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
size
Int64 Int64 Int64 Int64

The maximum size of the blob, in bytes.

premiumPageBlobTier
Nullable<PremiumPageBlobTier>

A PremiumPageBlobTier representing the tier to set.

accessCondition
AccessCondition AccessCondition 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 BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext OperationContext

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

cancellationToken
CancellationToken CancellationToken CancellationToken CancellationToken

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

Returns

A Task object that represents the asynchronous operation.

Applies to