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

要写入的字节数组。

返回

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

属性

适用于