locked
FileTypeFilter of FileQueryOptions broken?

    Question

  • This file

    A700AECE335781DA\1407771012181-203784806-329490-1.xml.ok

    should not be returned when I specify 

    queryOptions = new Windows.Storage.Search.QueryOptions();
    queryOptions.fileTypeFilter = ["*.xml", "*.png", "*.jpg"];

    Because the returned file of course says its fileType is ".ok"

    Hmppff... now I have to use AQS, have I?

    Tuesday, August 12, 2014 3:50 PM

Answers

  • It seems its not broken, the pattern to be used must be better explained in the (often incomplete and misleading) MSDN doc.

    queryOptions.fileTypeFilter = [".xml", ".png", ".jpg"];

    works.

    Tuesday, August 12, 2014 10:32 PM