C#
C++
F#
VB
CloudFile.::..ClearRangeAsync Method (Int64, Int64, CancellationToken)(Int64, Int64, CancellationToken)(Int64, Int64, CancellationToken)(Int64, Int64, CancellationToken)
Returns a task that performs an asynchronous operation to clear ranges from a file.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task ClearRangeAsync( long startOffset, long length, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task^ ClearRangeAsync( long long startOffset, long long length, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract ClearRangeAsync : startOffset:int64 * length:int64 * cancellationToken:CancellationToken -> Task [<DoesServiceRequestAttribute>] override ClearRangeAsync : startOffset:int64 * length:int64 * cancellationToken:CancellationToken -> Task
<DoesServiceRequestAttribute> Public Overridable Function ClearRangeAsync ( 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 ranges, in bytes.
- length
-
Type:
System.Int64System::Int64System.Int64System.Int64
The length of the data range to be cleared, in bytes.
- 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 current operation.