System.IO.FileNotFoundException.FileName Property

Gets the name of the file that cannot be found.

Syntax

public string FileName { get; }

Value

A string containing the name of the file, or null if no file name was passed to the constructor for the current instance.

Remarks

This property is read-only.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0