Delen via


PathIO.WriteBufferAsync(String, IBuffer) Method

Definition

Writes data from a buffer to the file at the specified path or Uniform Resource Identifier (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

Parameters

absolutePath
String

Platform::String

winrt::hstring

The path of the file that the data is written to.

buffer
IBuffer

The buffer that contains the data to write.

Returns

No object or value is returned when this method completes.

Attributes

Applies to