Reputation: 8410
getting data created for a file is easy
StorageFile myFile = await storageFolder.GetFileAsync("myfile");
var dateCreated = myFile.DateCreated;
but there is no corresponding myFile.DateModified.
is there anyway to get the data modified property ?
Upvotes: 3
Views: 1301
Reputation: 179
(await file.GetBasicPropertiesAsync()).DateModified does the same thing
Upvotes: 0
Reputation: 8410
I could not get BasicProperties, this may have been removed in RP. My solution was the convoluted
var check = new list<string>();
check.Add("System.DateModified");
var props = await myFile.Properties.RetrievePropertiesAsync(check);
var dateModified = props.SingleOrDefault().Value;
phew, that was hard work
Upvotes: 1
Reputation:
According to Ari Polski "You can get date modified through the BasicProperties"
Upvotes: 2