Condividi tramite


CloudPageBlob.GetPageRanges Method

Definition

Gets a collection of valid page ranges and their starting and ending bytes.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Collections.Generic.IEnumerable<Microsoft.Azure.Storage.Blob.PageRange> GetPageRanges (long? offset = default, long? length = default, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member GetPageRanges : Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> seq<Microsoft.Azure.Storage.Blob.PageRange>
override this.GetPageRanges : Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> seq<Microsoft.Azure.Storage.Blob.PageRange>
Public Overridable Function GetPageRanges (Optional offset As Nullable(Of Long) = Nothing, Optional length As Nullable(Of Long) = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As IEnumerable(Of PageRange)

Parameters

offset
Nullable<Int64>

The starting offset of the data range over which to list page ranges, in bytes. Must be a multiple of 512.

length
Nullable<Int64>

The length of the data range over which to list page ranges, in bytes. Must be a multiple of 512.

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. If null, default options are applied to the request.

operationContext
OperationContext

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

Returns

An enumerable collection of page ranges.

Attributes

Applies to