C#
C++
F#
VB
CloudFile.::..ResizeAsync Method (Int64, CancellationToken)(Int64, CancellationToken)(Int64, CancellationToken)(Int64, CancellationToken)
Returns a task that performs an asynchronous operation to resize a file.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task ResizeAsync( long size, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task^ ResizeAsync( long long size, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract ResizeAsync : size:int64 * cancellationToken:CancellationToken -> Task [<DoesServiceRequestAttribute>] override ResizeAsync : size:int64 * cancellationToken:CancellationToken -> Task
<DoesServiceRequestAttribute> Public Overridable Function ResizeAsync ( size As Long, cancellationToken As CancellationToken ) As Task
Parameters
- size
-
Type:
System.Int64System::Int64System.Int64System.Int64
The maximum size of the file, 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.