Programmatic file search sample

This sample shows how to query files in a location (like a folder, library, device, or network location). It uses Windows.Storage.Search API.

13,463 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • This is NOT a Windows 10 UWP App
    1 Posts | Last post May 17, 2016
    • Why is this listed as a UWP sample? 
      Loading in VS 2015 Update 2 I get this error:
      ...\C#\FileSearch.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  ...\UWPFileAccess\C#\FileSearch.csproj
  • How can you do the same operation in Windows Phone 8.1 ?
    1 Posts | Last post March 11, 2015
    • when I try this code in Windows phone 8.1 
       I get [System.NotImplementedException] = {System.NotImplementedException: The method or operation is not implemented.
         at Windows.Storage.Search.QueryOptions..ctor(CommonFileQuery query, IEnumerable`1 fileTypeFilter)