Share via


File.Exists Method

Determines whether the specified file exists.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static bool Exists (
         stringpath
)

Parameters

  • path
    The file to check.

Return Value

Type: System.Boolean

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

File Class
File Members
System.IO Namespace