Delen via


PathIO.WriteBytesAsync(String, Byte[]) Method

Definition

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

Parameters

absolutePath
String

Platform::String

winrt::hstring

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

buffer

Byte[]

byte[]

An array of bytes to write.

Returns

No object or value is returned when this method completes.

Attributes

Applies to