StorageItemAccessList.GetFileAsync 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.
Overloads
GetFileAsync(String) |
Retrieves the specified StorageFile from the list. |
GetFileAsync(String, AccessCacheOptions) |
Retrieves the StorageFile from the list using the specified options. |
GetFileAsync(String)
Retrieves the specified StorageFile from the list.
public:
virtual IAsyncOperation<StorageFile ^> ^ GetFileAsync(Platform::String ^ token) = GetFileAsync;
/// [Windows.Foundation.Metadata.Overload("GetFileAsync")]
IAsyncOperation<StorageFile> GetFileAsync(winrt::hstring const& token);
[Windows.Foundation.Metadata.Overload("GetFileAsync")]
public IAsyncOperation<StorageFile> GetFileAsync(string token);
function getFileAsync(token)
Public Function GetFileAsync (token As String) As IAsyncOperation(Of StorageFile)
Parameters
- token
-
String
Platform::String
winrt::hstring
The token of the StorageFile to retrieve.
Returns
When this method completes successfully, it returns the StorageFile that is associated with the specified token.
Implements
- Attributes
See also
Applies to
GetFileAsync(String, AccessCacheOptions)
Retrieves the StorageFile from the list using the specified options.
public:
virtual IAsyncOperation<StorageFile ^> ^ GetFileAsync(Platform::String ^ token, AccessCacheOptions options) = GetFileAsync;
/// [Windows.Foundation.Metadata.Overload("GetFileWithOptionsAsync")]
IAsyncOperation<StorageFile> GetFileAsync(winrt::hstring const& token, AccessCacheOptions const& options);
[Windows.Foundation.Metadata.Overload("GetFileWithOptionsAsync")]
public IAsyncOperation<StorageFile> GetFileAsync(string token, AccessCacheOptions options);
function getFileAsync(token, options)
Public Function GetFileAsync (token As String, options As AccessCacheOptions) As IAsyncOperation(Of StorageFile)
Parameters
- token
-
String
Platform::String
winrt::hstring
The token of the StorageFile to retrieve.
- options
- AccessCacheOptions
The enum value that describes the behavior to use when the app accesses the item.
Returns
When this method completes successfully, it returns the StorageFile that is associated with the specified token.
Implements
- Attributes