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

PathTooLongException Constructor

.NET Framework 1.1

Initializes a new instance of the PathTooLongException class.

Overload List

Initializes a new instance of the PathTooLongException class with its HRESULT set to COR_E_PATHTOOLONG.

Supported by the .NET Compact Framework.

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

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

Supported by the .NET Compact Framework.

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

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

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

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

See Also

PathTooLongException Class | PathTooLongException Members | System.IO Namespace

Show:
© 2015 Microsoft