5

http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.storagefile.datecreated.aspxによると、 StorageFile.DateCreatedは読み取り専用です。

デスクトップでは、次のことができます。

IStorageFile file = ...
DateTime date = ...
BasicProperties props = await file.GetBasicPropertiesAsync();
var changes = new List<KeyValuePair<string,object>>();
changes.Add(new KeyValuePair<string, object>("System.DateCreated", date));
await props.SavePropertiesAsync(changes);

しかし WP8 では BasicProperties.SavePropertiesAsync は実装されていません。

これを行う他の方法はありますか?

4

1 に答える 1