FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32) constructor

FileInformationFactory.FileInformationFactory(IStorageQueryResultBase, ThumbnailMode, UInt32) constructor

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.

Syntax


var fileInformationFactory = new Windows.Storage.BulkAccess.FileInformationFactory(queryResult, mode, requestedThumbnailSize);

Parameters

queryResult

Type: IStorageQueryResultBase

The result of a query of files and folders on the system.

To learn about query result objects, see StorageFileQueryResult, StorageFolderQueryResult, and StorageItemQueryResult.

mode

Type: ThumbnailMode

A value that indicates the type of thumbnail view to retrieve for the StorageFile and StorageFolder.

requestedThumbnailSize

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The requested minimum size, in pixels, of the StorageFile and StorageFolder thumbnails.

If thumbnails are not required for IStorageItemInformation objects, set the requestedSize to 0.

Remarks

If the query specified SetThumbnailPrefetch options, those options are overridden by the specified mode and requestedSize.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

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

 

 

Show:
© 2016 Microsoft