FileInformationFactory.FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32, ThumbnailOptions, Boolean) constructor
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.
Public Sub New ( queryResult As IStorageQueryResultBase, mode As ThumbnailMode, requestedThumbnailSize As UInteger, thumbnailOptions As ThumbnailOptions, delayLoad As Boolean )
The result of a query of files and folders on the system.
If thumbnails are not required for IStorageItemInformation objects, set the requestedSize to 0.
The thumbnail retrieval options.
True to delay loading information; otherwise false. By default, this option is false and delay loading is not used.
If delayLoad is true, it authorizes the FileInformationFactory to return IStorageItemInformation objects before thumbnails are available. Subsequently, the system fires a ThumbnailUpdated event when thumbnails become available. Using delay loading is recommended because it makes apps seem more responsive.
If delayLoad is false (as it is by default), the system will require more time to retrieve IStorageItemInformation objects, but after the objects are retrieved all cached thumbnails will be accessible synchronously. Thumbnails that are not cached must still be accessed asynchronously in response to the ThumbnailUpdated event.
If the query specified SetThumbnailPrefetch options, those options are overridden by the specified mode, requestedSize and options.
Minimum supported client
Minimum supported server
|Windows Server 2012|
- FileInformationFactory(IStorageQueryResultBase, ThumbnailMode)
- FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32)
- FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32, ThumbnailOptions)