共用方式為


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

要寫入的位元組陣列。

傳回

這個方法完成時不會傳回任何物件或值。

屬性

適用於