IStorageFolder.GetFileAsync(String) Method

Definition

Gets the specified file from the current folder.

public:
 IAsyncOperation<StorageFile ^> ^ GetFileAsync(Platform::String ^ name);
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> GetFileAsync(winrt::hstring const& name);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> GetFileAsync(string name);
function getFileAsync(name)
Public Function GetFileAsync (name As String) As IAsyncOperation(Of StorageFile)

Parameters

name
String

The name (or path relative to the current folder) of the file to retrieve.

Returns

IAsyncOperation<StorageFile>

When this method completes successfully, it returns a StorageFile that represents the file.

Attributes

Applies to

See also