共用方式為


PathIO.WriteBytesAsync(String, Byte[]) 方法

定義

在指定的路徑或統一資源識別項 (URI) ,將資料位元組寫入檔案。

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

參數

absolutePath
String

Platform::String

winrt::hstring

寫入位元組之檔案的路徑。

buffer

Byte[]

byte[]

要寫入的位元組陣列。

傳回

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

屬性

適用於