FileIO.WriteBytesAsync(IStorageFile, Byte[]) Метод

Определение

Записывает массив байтов данных в указанный файл.

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

Параметры

file
IStorageFile

Файл, в который записывается байт.

buffer

Byte[]

byte[]

Массив байтов для записи.

Возвращаемое значение

После завершения этого метода объект или значение не возвращаются.

Атрибуты

Применяется к