FileExistsAsync(string fileName) Method

Returns a value indicating whether the specified file exists.

Syntax

public virtual Task<bool> FileExistsAsync(string fileName)

Parameters

fileName
Type: string

The name of the file.

Returns

Value indicating whether the file exists.