FileNotFoundException Constructor

FileNotFoundException Constructor

 

Initializes a new instance of the FileNotFoundException class with optional message string and inner Exception reference.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodFileNotFoundException()

Initializes a new instance of the FileNotFoundException class with its message string set to a system-supplied message and its HRESULT set to COR_E_FILENOTFOUND.

System_CAPS_protmethodFileNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the FileNotFoundException class with the specified serialization and context information.

System_CAPS_pubmethodFileNotFoundException(String)

Initializes a new instance of the FileNotFoundException class with its message string set to message and its HRESULT set to COR_E_FILENOTFOUND.

System_CAPS_pubmethodFileNotFoundException(String, Exception)

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

System_CAPS_pubmethodFileNotFoundException(String, String)

Initializes a new instance of the FileNotFoundException class with its message string set to message, specifying the file name that cannot be found, and its HRESULT set to COR_E_FILENOTFOUND.

System_CAPS_pubmethodFileNotFoundException(String, String, Exception)

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

Return to top
Show:
© 2016 Microsoft