PathIO.ReadBufferAsync(String) Método

Definição

Lê o conteúdo do arquivo no caminho especificado ou no URI (Uniform Resource Identifier) e retorna um 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)

Parâmetros

absolutePath
String

Platform::String

winrt::hstring

O caminho do arquivo a ser lido.

Retornos

Quando esse método for concluído, ele retornará um objeto (tipo IBuffer) que representa o conteúdo do arquivo.

Atributos

Aplica-se a