StorageItemAccessList.GetFileAsync 方法

定义

重载

GetFileAsync(String)

从列表中检索指定的 StorageFile

GetFileAsync(String, AccessCacheOptions)

使用指定的选项从列表中检索 StorageFile

GetFileAsync(String)

从列表中检索指定的 StorageFile

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)

参数

token
String

Platform::String

winrt::hstring

要检索的 StorageFile 的标记。

返回

此方法成功完成后,将返回与指定令牌关联的 StorageFile

实现

M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(System.String) M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(Platform::String) M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(winrt::hstring)
属性

另请参阅

适用于

GetFileAsync(String, AccessCacheOptions)

使用指定的选项从列表中检索 StorageFile

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)

参数

token
String

Platform::String

winrt::hstring

要检索的 StorageFile 的标记。

options
AccessCacheOptions

枚举值,该值描述应用访问项时要使用的行为。

返回

此方法成功完成后,将返回与指定令牌关联的 StorageFile

实现

M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(System.String,Windows.Storage.AccessCache.AccessCacheOptions) M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(Platform::String,Windows.Storage.AccessCache.AccessCacheOptions) M:Windows.Storage.AccessCache.IStorageItemAccessList.GetFileAsync(winrt::hstring,Windows.Storage.AccessCache.AccessCacheOptions)
属性

另请参阅

适用于