مشاركة عبر


FileIO.WriteBytesAsync(IStorageFile, Byte[]) Method

Definition

Writes an array of bytes of data to the specified file.

public:
 static IAsyncAction ^ WriteBytesAsync(IStorageFile ^ file, Platform::Array <byte> ^ buffer);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction WriteBytesAsync(IStorageFile const& file, winrt::array_view <byte> const& buffer);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction WriteBytesAsync(IStorageFile file, byte[] buffer);
function writeBytesAsync(file, buffer)
Public Shared Function WriteBytesAsync (file As IStorageFile, buffer As Byte()) As IAsyncAction

Parameters

file
IStorageFile

The file that the byte is written to.

buffer

Byte[]

byte[]

The array of bytes to write.

Returns

No object or value is returned when this method completes.

Attributes

Applies to