Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FileLoadException Constructor

.NET Framework 1.1

Initializes a new instance of the FileLoadException class.

Overload List

Initializes a new instance of the FileLoadException class, setting the Message property of the new instance to a system-supplied message that describes the error, such as "Could not load the specified file." This message takes into account the current system culture.

[Visual Basic] Public Sub New()
[C#] public FileLoadException();
[C++] public: FileLoadException();
[JScript] public function FileLoadException();

Initializes a new instance of the FileLoadException class with the specified error message.

[Visual Basic] Public Sub New(String)
[C#] public FileLoadException(string);
[C++] public: FileLoadException(String*);
[JScript] public function FileLoadException(String);

Initializes a new instance of the FileLoadException class with serialized data.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected FileLoadException(SerializationInfo, StreamingContext);
[C++] protected: FileLoadException(SerializationInfo*, StreamingContext);
[JScript] protected function FileLoadException(SerializationInfo, StreamingContext);

Initializes a new instance of the FileLoadException class with a specified error message and a reference to the inner exception that is the cause of this exception.

[Visual Basic] Public Sub New(String, Exception)
[C#] public FileLoadException(string, Exception);
[C++] public: FileLoadException(String*, Exception*);
[JScript] public function FileLoadException(String, Exception);

Initializes a new instance of the FileLoadException class with a specified error message and the name of the file that could not be loaded.

[Visual Basic] Public Sub New(String, String)
[C#] public FileLoadException(string, string);
[C++] public: FileLoadException(String*, String*);
[JScript] public function FileLoadException(String, String);

Initializes a new instance of the FileLoadException class with a specified error message, the name of the file that could not be loaded, and a reference to the inner exception that is the cause of this exception.

[Visual Basic] Public Sub New(String, String, Exception)
[C#] public FileLoadException(string, string, Exception);
[C++] public: FileLoadException(String*, String*, Exception*);
[JScript] public function FileLoadException(String, String, Exception);

See Also

FileLoadException Class | FileLoadException Members | System.IO Namespace

Show:
© 2015 Microsoft