共用方式為


PathIO.ReadBufferAsync(String) 方法

定義

讀取位於指定路徑或統一資源識別項的檔案內容, (URI) 並傳回緩衝區。

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)

參數

absolutePath
String

Platform::String

winrt::hstring

要讀取之檔案的路徑。

傳回

當這個方法完成時,它會傳回物件 (類型 IBuffer) ,代表檔案的內容。

屬性

適用於