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

DirectoryNotFoundException Constructor

.NET Framework 1.1

Initializes a new instance of the DirectoryNotFoundException class with its message string.

Overload List

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

Supported by the .NET Compact Framework.

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

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

Supported by the .NET Compact Framework.

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

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

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

Initializes a new instance of the DirectoryNotFoundException 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 DirectoryNotFoundException(string, Exception);
[C++] public: DirectoryNotFoundException(String*, Exception*);
[JScript] public function DirectoryNotFoundException(String, Exception);

See Also

DirectoryNotFoundException Class | DirectoryNotFoundException Members | System.IO Namespace

Show:
© 2015 Microsoft