CloudFile.OpenWriteAsync Method (Nullable(Int64), CancellationToken) (Microsoft.WindowsAzure.Storage.File)
From Microsoft Windows Azure Storage Blob
C#
C++
F#
VB
CloudFile.::..OpenWriteAsync Method (Nullable<Int64>, CancellationToken)(Nullable<Int64>, CancellationToken)(Nullable<Int64>, CancellationToken)(Nullable(Of Int64), CancellationToken)
Returns a task that performs an asynchronous operation to open a stream for writing to the file.
Namespace:
Microsoft.WindowsAzure.Storage.File
Assembly:
Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute]
public virtual Task<CloudFileStream> OpenWriteAsync(
Nullable<long> size,
CancellationToken cancellationToken
)
C++
public:
[DoesServiceRequestAttribute]
virtual Task<CloudFileStream^>^ OpenWriteAsync(
Nullable<long long> size,
CancellationToken cancellationToken
)
[<DoesServiceRequestAttribute>]
abstract OpenWriteAsync :
size:Nullable<int64> *
cancellationToken:CancellationToken -> Task<CloudFileStream>
[<DoesServiceRequestAttribute>]
override OpenWriteAsync :
size:Nullable<int64> *
cancellationToken:CancellationToken -> Task<CloudFileStream>
<DoesServiceRequestAttribute>
Public Overridable Function OpenWriteAsync (
size As Nullable(Of Long),
cancellationToken As CancellationToken
) As Task(Of CloudFileStream)
Parameters
- size
-
Type:
System.Nullable<Int64>System::Nullable<Int64>System.Nullable<Int64>System.Nullable(Of Int64)
The size of the file, in bytes. If null, the file must already exist.
- 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.Task<CloudFileStream>System.Threading.Tasks::Task<CloudFileStream^>^System.Threading.Tasks.Task<CloudFileStream>System.Threading.Tasks.Task(Of CloudFileStream)A Task<TResult><TResult><'TResult>(Of TResult) object that represents the current operation.
Return to top
Returns a task that performs an asynchronous operation to open a stream for writing to the file.
Syntax
[DoesServiceRequestAttribute] public virtual Task<CloudFileStream> OpenWriteAsync( Nullable<long> size, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task<CloudFileStream^>^ OpenWriteAsync( Nullable<long long> size, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract OpenWriteAsync : size:Nullable<int64> * cancellationToken:CancellationToken -> Task<CloudFileStream> [<DoesServiceRequestAttribute>] override OpenWriteAsync : size:Nullable<int64> * cancellationToken:CancellationToken -> Task<CloudFileStream>
<DoesServiceRequestAttribute> Public Overridable Function OpenWriteAsync ( size As Nullable(Of Long), cancellationToken As CancellationToken ) As Task(Of CloudFileStream)
Parameters
- size
-
Type:
System.Nullable<Int64>System::Nullable<Int64>System.Nullable<Int64>System.Nullable(Of Int64)
The size of the file, in bytes. If null, the file must already exist.
- 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.Task<CloudFileStream>System.Threading.Tasks::Task<CloudFileStream^>^System.Threading.Tasks.Task<CloudFileStream>System.Threading.Tasks.Task(Of CloudFileStream)A Task<TResult><TResult><'TResult>(Of TResult) object that represents the current operation.