Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

FileNotFoundException.FileName Property

Definition

Namespace:
System.IO
Assemblies:
mscorlib.dll, System.Runtime.dll
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Runtime.dll
Assembly:
mscorlib.dll
Assembly:
System.IO.dll
Assembly:
netstandard.dll
Source:
FileNotFoundException.cs
Source:
FileNotFoundException.cs
Source:
FileNotFoundException.cs
Source:
FileNotFoundException.cs
Source:
FileNotFoundException.cs

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 : string
Public ReadOnly Property FileName As String

Property 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.

Applies to

See also


Feedback

Was this page helpful?