FileInformationFactory class

Applies to Windows only

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.

Syntax


public ref class FileInformationFactory sealed 

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The FileInformationFactory class has these types of members:

Constructors

The FileInformationFactory class has these constructors.

ConstructorDescription
FileInformationFactory(IStorageQueryResultBase, ThumbnailMode) Creates a new FileInformationFactory object that retrieves information about the StorageFile and StorageFolder objects in the specified query result.
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, 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, 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.

 

Methods

The FileInformationFactory class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
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.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.Storage.BulkAccess
Windows::Storage::BulkAccess [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft