IStorageFolder.GetFilesAsync 方法

定義

從目前資料夾取得檔案。

public:
 IAsyncOperation<IVectorView<StorageFile ^> ^> ^ GetFilesAsync();
/// [Windows.Foundation.Metadata.Overload("GetFilesAsyncOverloadDefaultOptionsStartAndCount")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<StorageFile>> GetFilesAsync();
[Windows.Foundation.Metadata.Overload("GetFilesAsyncOverloadDefaultOptionsStartAndCount")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync();
function getFilesAsync()
Public Function GetFilesAsync () As IAsyncOperation(Of IReadOnlyList(Of StorageFile))

傳回

當這個方法成功完成時,它會傳回資料夾中 (類型 IVectorView) 的檔案清單。 清單中的每個檔案都會以 StorageFile 物件表示。

屬性

適用於

另請參閱