我们将这些对象缓存在 xml 文件中,并且我们不想在 24+ 过去时忽略缓存的文件。我不想加载文件来检查 24 小时是否已经过去,所以我想知道是否有办法在不加载文件的情况下获取文件的元数据。就像是:
using (IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication())
{
DateTime dateTimeCreated = file.GetAttributes(this.CacheFileName)["DateTimeCreated"];
}
让我知道。谢谢!
最佳答案
日志文件怎么样? (或者您可以在应用设置中列出日期 + 名称)
关于windows-phone-7 - 是否可以在不加载它的情况下知道什么时候创建了IsolatedStorageFile?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4072551/