Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.