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