FileInformationFactory 類別

定義

用來從查詢結果載入檔案和資料夾的相關資訊,以及將這些檔案系統專案系結至 JavaScript ListView 或 XAML ListViewGridView 控制項。 載入資訊之後,應用程式就可以使用同步作業快速存取該資訊。

public ref class FileInformationFactory sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Storage.BulkAccess.IFileInformationFactoryFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class FileInformationFactory final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Storage.BulkAccess.IFileInformationFactoryFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class FileInformationFactory final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Storage.BulkAccess.IFileInformationFactoryFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class FileInformationFactory
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Storage.BulkAccess.IFileInformationFactoryFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class FileInformationFactory
function FileInformationFactory(queryResult, mode, requestedThumbnailSize, thumbnailOptions, delayLoad)
Public NotInheritable Class FileInformationFactory
繼承
Object Platform::Object IInspectable FileInformationFactory
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

FileInformationFactory(IStorageQueryResultBase, ThumbnailMode)

建立新的 FileInformationFactory 物件,以擷取指定查詢結果中 StorageFileStorageFolder 物件的相關資訊。

FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32)

建立新的 FileInformationFactory 物件,以擷取指定查詢結果中 StorageFileStorageFolder 物件的相關資訊,並指定針對物件擷取之縮圖的要求大小。

FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32, ThumbnailOptions)

建立新的 FileInformationFactory 物件,以擷取指定查詢結果中 StorageFileStorageFolder 物件的相關資訊,並指定針對物件擷取之縮圖的要求大小和選項。

FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32, ThumbnailOptions, Boolean)

建立新的 FileInformationFactory 物件,以擷取指定查詢結果中 StorageFileStorageFolder 物件的相關資訊、指定針對物件擷取之縮圖的要求大小和選項,並指出是否延遲載入資訊。

方法

GetFilesAsync()

擷取 FileInformation 物件的集合,其中包含集合中所有 StorageFile 物件的相關資訊。

GetFilesAsync(UInt32, UInt32)

擷取 FileInformation 物件的集合,其中包含集合中 StorageFile 物件範圍的相關資訊。

GetFoldersAsync()

擷取 FolderInformation 物件的集合,其中包含集合中所有 StorageFolder 物件的相關資訊。

GetFoldersAsync(UInt32, UInt32)

擷取 FolderInformation 物件的集合,其中包含集合中 StorageFolder 物件範圍的相關資訊。

GetItemsAsync()

擷取 IStorageItemInformation 物件的集合,其中包含集合中所有專案的相關資訊。

GetItemsAsync(UInt32, UInt32)

擷取 IStorageItemInformation 物件的集合,其中包含集合中專案範圍的相關資訊。

GetVirtualizedFilesVector()

取得可系結至 C#、C++ 和 VB 中ListViewGridView控制項的IStorageItemInformation物件的虛擬化向量。

GetVirtualizedFoldersVector()

取得可系結至 C#、C++ 和 VB 中ListViewGridView控制項的IStorageItemInformation物件的虛擬化向量。

GetVirtualizedItemsVector()

取得可系結至 C#、C++ 和 VB 中ListViewGridView控制項的IStorageItemInformation物件的虛擬化向量。

適用於