PathIO.ReadBufferAsync(String) Method

Definition

Reads the contents of the file at the specified path or Uniform Resource Identifier (URI) and returns a buffer.

public:
 static IAsyncOperation<IBuffer ^> ^ ReadBufferAsync(Platform::String ^ absolutePath);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IBuffer> ReadBufferAsync(winrt::hstring const& absolutePath);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IBuffer> ReadBufferAsync(string absolutePath);
function readBufferAsync(absolutePath)
Public Shared Function ReadBufferAsync (absolutePath As String) As IAsyncOperation(Of IBuffer)

Parameters

absolutePath
String

Platform::String

winrt::hstring

The path of the file to read.

Returns

When this method completes, it returns an object (type IBuffer) that represents the contents of the file.

Attributes

Applies to