C#
C++
F#
VB
CloudPageBlob.::..ClearPagesAsync Method (Int64, Int64, CancellationToken)(Int64, Int64, CancellationToken)(Int64, Int64, CancellationToken)(Int64, Int64, CancellationToken)
Initiates an asynchronous operation to clear pages from a page blob.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task ClearPagesAsync( long startOffset, long length, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task^ ClearPagesAsync( long long startOffset, long long length, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract ClearPagesAsync : startOffset:int64 * length:int64 * cancellationToken:CancellationToken -> Task [<DoesServiceRequestAttribute>] override ClearPagesAsync : startOffset:int64 * length:int64 * cancellationToken:CancellationToken -> Task
<DoesServiceRequestAttribute> Public Overridable Function ClearPagesAsync ( startOffset As Long, length As Long, cancellationToken As CancellationToken ) As Task
Parameters
- startOffset
-
Type:
System.Int64System::Int64System.Int64System.Int64
The offset at which to begin clearing pages, in bytes. The offset must be a multiple of 512.
- length
-
Type:
System.Int64System::Int64System.Int64System.Int64
The length of the data range to be cleared, in bytes. The length must be a multiple of 512.
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Return Value
Type: System.Threading.Tasks.TaskSystem.Threading.Tasks::Task^System.Threading.Tasks.TaskSystem.Threading.Tasks.TaskA Task object that represents the asynchronous operation.