Drive​Not​Found​Exception Class

Definition

The exception that is thrown when trying to access a drive or share that is not available.

[System.Runtime.InteropServices.ComVisible(true)]
public class DriveNotFoundException : System.IO.IOException
Inheritance
DriveNotFoundException
Attributes

Inherited Members

Remarks

The DriveNotFoundException class uses the HRESULT COR_E_DIRECTORYNOTFOUND. This exception can be thrown when a Win32 ERROR_PATH_NOT_FOUND HRESULT error is encountered.

Constructors

Drive​Not​Found​Exception()

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

Drive​Not​Found​Exception(​String)

Initializes a new instance of the DriveNotFoundException class with the specified message string and the HRESULT set to COR_E_DIRECTORYNOTFOUND.

Drive​Not​Found​Exception(​Serialization​Info, ​Streaming​Context)

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

Drive​Not​Found​Exception(​String, ​Exception)

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