CloudPageBlob.Create CloudPageBlob.Create Method

Definition

Overloads

Create(Int64, AccessCondition, BlobRequestOptions, OperationContext) Create(Int64, AccessCondition, BlobRequestOptions, OperationContext)

Creates 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().

Create(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext) Create(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext)

Creates 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().

Create(Int64, AccessCondition, BlobRequestOptions, OperationContext) Create(Int64, AccessCondition, BlobRequestOptions, OperationContext)

Creates 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().

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual void Create (long size, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member Create : int64 * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
override this.Create : int64 * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
Parameters
size
Int64 Int64

The maximum size of the page blob, in bytes.

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

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext OperationContext

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

Create(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext) Create(Int64, Nullable<PremiumPageBlobTier>, AccessCondition, BlobRequestOptions, OperationContext)

Creates 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().

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual void Create (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);
abstract member Create : int64 * Nullable<Microsoft.WindowsAzure.Storage.Blob.PremiumPageBlobTier> * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
override this.Create : int64 * Nullable<Microsoft.WindowsAzure.Storage.Blob.PremiumPageBlobTier> * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
Parameters
size
Int64 Int64

The maximum size of the page blob, in bytes.

premiumPageBlobTier
Nullable<PremiumPageBlobTier>

A PremiumPageBlobTier representing the tier to set.

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

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext OperationContext

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

Applies to