PathIO.ReadBufferAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro