Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Fehlermeldung: CommonFileQuery.OrderByDate The specified query options are not available for this folder because it is not within a library

25.12.2020 (πŸ‘165)

Fehlermeldung: CommonFileQuery.OrderByDate

The specified query options are not available for this folder because it is not within a library

 

Fehlermeldung:

System.ArgumentException: 'The parameter is incorrect.

The specified query options are not available for this folder because it is not within a library or Homegroup. Only folders within a library or a Homegroup support all options.'

 

 

Betrifft: Laden von StorageFiles aus einem Folder

StorageFile file in await folder.GetFilesAsync(Windows.Storage.Search.CommonFileQuery.OrderByDate)

 

 

Dateien in Ordner sortieren

C# UWP Laden von Files aus Folder

 

LΓΆsung:

Sortieren von Dateien mit List

 

//< get Files sorted >

IReadOnlyList<StorageFile> files = await folder.GetFilesAsync();

IEnumerable<StorageFile> sortedFiles = files.OrderByDescending((x) => x.DateCreated);

//</ get Files sorted >

//----< @Loop: Files in Folder >----

foreach (StorageFile file in sortedFiles)

{

   Console.WriteLine(file.DisplayName);

..