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[]

要写入的字节数组。

返回

此方法完成后,不会返回任何对象或值。

属性

适用于