FileInformationFactory class

This topic has not yet been rated - Rate this topic

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


var fileInformationFactory = new Windows.Storage.BulkAccess.FileInformationFactory(iStorageQueryResultBase, thumbnailMode);
var fileInformationFactory = new Windows.Storage.BulkAccess.FileInformationFactory(iStorageQueryResultBase, thumbnailMode, uInt32);
var fileInformationFactory = new Windows.Storage.BulkAccess.FileInformationFactory(iStorageQueryResultBase, thumbnailMode, uInt32, thumbnailOptions);
var fileInformationFactory = new Windows.Storage.BulkAccess.FileInformationFactory(iStorageQueryResultBase, thumbnailMode, uInt32, thumbnailOptions, boolean);

Attributes

ActivatableAttribute(Windows.Storage.BulkAccess.IFileInformationFactoryFactory, NTDDI_WIN8)
MarshalingBehaviorAttribute(Agile)
VersionAttribute(NTDDI_WIN8)

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]

Namespace

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

Metadata

Windows.winmd

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.