【发布时间】:2012-01-27 09:38:20
【问题描述】:
有没有其他方法可以检查文件是否存在于 Windows 应用商店应用程序中?
try
{
var file = await ApplicationData.Current.LocalFolder.GetFileAsync("Test.xml");
//no exception means file exists
}
catch (FileNotFoundException ex)
{
//find out through exception
}
【问题讨论】:
标签: c# windows-8 windows-runtime microsoft-metro filenotfoundexception