Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileLoadException.ToString Method

Returns the fully qualified name of the current exception, and possibly the error message, the name of the inner exception, and the stack trace.

[Visual Basic]
Overrides Public Function ToString() As String
[C#]
public override string ToString();
[C++]
public: String* ToString();
[JScript]
public override function ToString() : String;

Return Value

A string containing the fully qualified name of this exception, and possibly the error message, the name of the inner exception, and the stack trace, depending on which FileLoadException constructor is used.

Remarks

This method overrides ToString.

The string representation returned by this method includes the name of the exception, the value of the Message the value of the FileName property, and the result of calling StackTrace. If any of these members is a null reference, its value is not included in the returned string.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

FileLoadException Class | FileLoadException Members | System.IO Namespace | Working with I/O | Reading Text from a File | Writing Text to a File

Show:
© 2018 Microsoft