CloudFile.OpenWriteAsync Method (Nullable)

Windows Runtime Azure Storage Client Library

Opens a stream for writing to the file.

Namespace: Microsoft.WindowsAzure.Storage.File
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As CloudFile
Dim size As Nullable(Of Long)
Dim returnValue As IAsyncOperation(Of ICloudFileStream)

returnValue = instance.OpenWriteAsync(size)

Syntax

Visual Basic
Public Function OpenWriteAsync ( _
	size As Nullable(Of Long) _
) As IAsyncOperation(Of ICloudFileStream)
C#
public IAsyncOperation<ICloudFileStream> OpenWriteAsync (
	Nullable<long> size
)
C++
public:
IAsyncOperation<ICloudFileStream^>^ OpenWriteAsync (
	Nullable<long long> size
)
J#
public IAsyncOperation<ICloudFileStream> OpenWriteAsync (
	Nullable<long> size
)
JScript
public function OpenWriteAsync (
	size : Nullable<long>
) : IAsyncOperation<ICloudFileStream>

Parameters

size

The size of the write operation, in bytes.

Return Value

A stream to be used for writing to the file.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also