FileInformationFactory FileInformationFactory FileInformationFactory FileInformationFactory Class

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

Declaration

public sealed class FileInformationFactorypublic sealed class FileInformationFactoryPublic NotInheritable Class FileInformationFactory

Constructors summary

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

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.

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.

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 summary

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

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

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

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

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

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

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

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

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

Constructors

  • FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode)

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

    public FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode)public FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode)Public Function FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode) As

    Parameters

    Remarks

    If the query specified SetThumbnailPrefetch(Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions) options, those options are overridden by options requested in any of the @Windows.Storage.BulkAccess.FileInformationFactory.#ctor(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode) constructors.

  • FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.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.

    public FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32)public FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32)Public Function FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32) As

    Parameters

  • FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.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.

    public FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions)public FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions)Public Function FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions) As

    Parameters

  • FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions,System.Boolean)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions,System.Boolean)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions,System.Boolean)
    FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions,System.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.

    public FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions,System.Boolean)public FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions,System.Boolean)Public Function FileInformationFactory(Windows.Storage.Search.IStorageQueryResultBase,Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions,System.Boolean) As

    Parameters

Methods

  • GetFilesAsync()
    GetFilesAsync()
    GetFilesAsync()
    GetFilesAsync()

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

    public IAsyncOperation<FileInformation>> GetFilesAsync()public IAsyncOperation<FileInformation>> GetFilesAsync()Public Function GetFilesAsync() As IAsyncOperation( Of FileInformation )

    Returns

  • GetFilesAsync(System.UInt32,System.UInt32)
    GetFilesAsync(System.UInt32,System.UInt32)
    GetFilesAsync(System.UInt32,System.UInt32)
    GetFilesAsync(System.UInt32,System.UInt32)

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

    public IAsyncOperation<FileInformation>> GetFilesAsync(System.UInt32,System.UInt32)public IAsyncOperation<FileInformation>> GetFilesAsync(System.UInt32,System.UInt32)Public Function GetFilesAsync(System.UInt32,System.UInt32) As IAsyncOperation( Of FileInformation )

    Parameters

    • startIndex
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The zero-based index of the first StorageFile in the range.

    • maxItemsToRetrieve
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The maximum number of StorageFile objects to retrieve information for.

    Returns

  • GetFoldersAsync()
    GetFoldersAsync()
    GetFoldersAsync()
    GetFoldersAsync()

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

    public IAsyncOperation<FolderInformation>> GetFoldersAsync()public IAsyncOperation<FolderInformation>> GetFoldersAsync()Public Function GetFoldersAsync() As IAsyncOperation( Of FolderInformation )

    Returns

  • GetFoldersAsync(System.UInt32,System.UInt32)
    GetFoldersAsync(System.UInt32,System.UInt32)
    GetFoldersAsync(System.UInt32,System.UInt32)
    GetFoldersAsync(System.UInt32,System.UInt32)

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

    public IAsyncOperation<FolderInformation>> GetFoldersAsync(System.UInt32,System.UInt32)public IAsyncOperation<FolderInformation>> GetFoldersAsync(System.UInt32,System.UInt32)Public Function GetFoldersAsync(System.UInt32,System.UInt32) As IAsyncOperation( Of FolderInformation )

    Parameters

    • startIndex
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The zero-based index of the first StorageFolder in the range.

    • maxItemsToRetrieve
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The maximum number of StorageFolder objects to retrieve information for.

    Returns

  • GetItemsAsync()
    GetItemsAsync()
    GetItemsAsync()
    GetItemsAsync()

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

    public IAsyncOperation<IStorageItemInformation>> GetItemsAsync()public IAsyncOperation<IStorageItemInformation>> GetItemsAsync()Public Function GetItemsAsync() As IAsyncOperation( Of IStorageItemInformation )

    Returns

  • GetItemsAsync(System.UInt32,System.UInt32)
    GetItemsAsync(System.UInt32,System.UInt32)
    GetItemsAsync(System.UInt32,System.UInt32)
    GetItemsAsync(System.UInt32,System.UInt32)

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

    public IAsyncOperation<IStorageItemInformation>> GetItemsAsync(System.UInt32,System.UInt32)public IAsyncOperation<IStorageItemInformation>> GetItemsAsync(System.UInt32,System.UInt32)Public Function GetItemsAsync(System.UInt32,System.UInt32) As IAsyncOperation( Of IStorageItemInformation )

    Parameters

    • startIndex
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The zero-based index of the first item in the range.

    • maxItemsToRetrieve
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The maximum number of items to retrieve information for.

    Returns

  • GetVirtualizedFilesVector()
    GetVirtualizedFilesVector()
    GetVirtualizedFilesVector()
    GetVirtualizedFilesVector()

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

    public object GetVirtualizedFilesVector()public object GetVirtualizedFilesVector()Public Function GetVirtualizedFilesVector() As object

    Returns

    Remarks

    A virtualized vector can return null for some items before it populates their value.

  • GetVirtualizedFoldersVector()
    GetVirtualizedFoldersVector()
    GetVirtualizedFoldersVector()
    GetVirtualizedFoldersVector()

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

    public object GetVirtualizedFoldersVector()public object GetVirtualizedFoldersVector()Public Function GetVirtualizedFoldersVector() As object

    Returns

  • GetVirtualizedItemsVector()
    GetVirtualizedItemsVector()
    GetVirtualizedItemsVector()
    GetVirtualizedItemsVector()

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

    public object GetVirtualizedItemsVector()public object GetVirtualizedItemsVector()Public Function GetVirtualizedItemsVector() As object

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Storage.BulkAccess.dll