FileNotFoundException.FileName Property     
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 the name of the file that cannot be found.
public:
 property System::String ^ FileName { System::String ^ get(); };public string FileName { get; }public string? FileName { get; }member this.FileName : stringPublic ReadOnly Property FileName As StringProperty Value
The name of the file, or null if no file name was passed to the constructor for this instance.
Remarks
This property is read-only.