Bagikan melalui


FileIO.WriteBytesAsync(IStorageFile, Byte[]) Metode

Definisi

Menulis array byte data ke file yang ditentukan.

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

Parameter

file
IStorageFile

File tempat byte ditulis.

buffer

Byte[]

byte[]

Array byte yang akan ditulis.

Mengembalikan

Tidak ada objek atau nilai yang dikembalikan ketika metode ini selesai.

Atribut

Berlaku untuk