System.IO.FileLoadException.FileName Property

Gets the name of the file that causes this exception.

Syntax

public string FileName { get; }

Value

A string containing the name of the file that caused the current exception.

Remarks

This property returns the name of the file supplied to the constructor for the current instance, if any. If the file name was not specified or is a null reference, this property returns a null reference.

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