by
0
6
2,338
0
Top 1% !
Popular
Famous
Tagged
Easy-to-find
Specified
Popularity: 7752nd place
This snippet is Public
.NETFramework4.0
LanguageCSharp
LicenseMIT_X11
OSWindows
Windows VersionWindows8

Check if a file exists in Metro Style App

This is how you can check if a file exists in MEtro Style apps
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/350/Check-if-a-file-exists-in-Metro-Style-Ap?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
try { await ApplicationData.Current.LocalFolder.GetFileAsync(path); //no exception means file exists return true; } catch { return false; }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus