System.IO.FileLoadException.Message Property

Gets the error message and the name of the file that caused this exception.

Syntax

public override string Message { get; }

Value

A string containing a message that describes the error that caused the current exception.

Remarks

This property overrides Exception.Message.

If no message was supplied to the constructor for the current exception, this property returns a system-supplied error message. If the FileLoadException.FileName property is not a null reference, the message includes the file name, for example, "Unable to load file a FileName." (a FileName represents the value returned by FileLoadException.FileName.) If FileLoadException.FileName is null, this is indicated in the system-supplied message as "(null)". The system-supplied message takes into account the current system culture.

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