Delen via


FileInformationFactory Class

Definition

Used to load information about files and folders from the results of a query and to bind these file system items to JavaScript ListView or XAML ListView and GridView controls. After information is loaded, an app can then access that information quickly using synchronous operations.

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
Inheritance
Object Platform::Object IInspectable FileInformationFactory
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

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

Creates a new FileInformationFactory object that retrieves information about the StorageFile and StorageFolder objects in the specified query result, specifies the requested size and options for thumbnails that are retrieved for the objects, and indicates whether to delay loading information.

FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32, ThumbnailOptions)

Creates a new FileInformationFactory object that retrieves information about the StorageFile and StorageFolder objects in the specified query result, and that specifies the requested size and options for thumbnails that are retrieved for the objects.

FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32)

Creates a new FileInformationFactory object that retrieves information about the StorageFile and StorageFolder objects in the specified query result and that specifies the requested size for thumbnails that are retrieved for the objects.

FileInformationFactory(IStorageQueryResultBase, ThumbnailMode)

Creates a new FileInformationFactory object that retrieves information about the StorageFile and StorageFolder objects in the specified query result.

Methods

GetFilesAsync()

Retrieves a collection of FileInformation objects that contain information about all StorageFile objects in a collection.

GetFilesAsync(UInt32, UInt32)

Retrieves a collection of FileInformation objects that contain information about a range of StorageFile objects in a collection.

GetFoldersAsync()

Retrieves a collection of FolderInformation objects that contain information about all StorageFolder objects in a collection.

GetFoldersAsync(UInt32, UInt32)

Retrieves a collection of FolderInformation objects that contain information about a range of StorageFolder objects in a collection.

GetItemsAsync()

Retrieves a collection of IStorageItemInformation objects that contain information about all the items in the collection.

GetItemsAsync(UInt32, UInt32)

Retrieves a collection of IStorageItemInformation objects that contain information about a range of items in a collection.

GetVirtualizedFilesVector()

Gets a virtualized vector of IStorageItemInformation objects that can be bound to ListView or GridView controls in C#, C++, and VB.

GetVirtualizedFoldersVector()

Gets a virtualized vector of IStorageItemInformation objects that can be bound to ListView or GridView controls in C#, C++, and VB.

GetVirtualizedItemsVector()

Gets a virtualized vector of IStorageItemInformation objects that can be bound to ListView or GridView controls in C#, C++, and VB.

Applies to