PathIO.WriteBufferAsync(String, IBuffer) 方法

定义

将数据从缓冲区写入指定路径或统一资源标识符 (URI) 的文件。

public:
 static IAsyncAction ^ WriteBufferAsync(Platform::String ^ absolutePath, IBuffer ^ buffer);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction WriteBufferAsync(winrt::hstring const& absolutePath, IBuffer const& buffer);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction WriteBufferAsync(string absolutePath, IBuffer buffer);
function writeBufferAsync(absolutePath, buffer)
Public Shared Function WriteBufferAsync (absolutePath As String, buffer As IBuffer) As IAsyncAction

参数

absolutePath
String

Platform::String

winrt::hstring

写入数据的文件的路径。

buffer
IBuffer

包含要写入的数据的缓冲区。

返回

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

属性

适用于