StorageFileHelper.FileExistsAsync(StorageFolder, String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether a file exists in the current folder.
public static System.Threading.Tasks.Task<bool> FileExistsAsync (this Windows.Storage.StorageFolder folder, string fileName, bool isRecursive = false);
static member FileExistsAsync : Windows.Storage.StorageFolder * string * bool -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function FileExistsAsync (folder As StorageFolder, fileName As String, Optional isRecursive As Boolean = false) As Task(Of Boolean)
Parameters
- folder
- Windows.Storage.StorageFolder
The Windows.Storage.StorageFolder to look for the file in.
- fileName
- String
The String filename of the file to search for. Must include the file extension and is not case-sensitive.
Returns
true
if the file exists; otherwise, false
.