This documentation is archived and is not being maintained.

ErrorWrapper Constructor

.NET Framework 1.1

Initializes a new instance of the ErrorWrapper class.

Overload List

Initializes a new instance of the ErrorWrapper class with the HRESULT that corresponds to the exception supplied.

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

Initializes a new instance of the ErrorWrapper class with the HRESULT of the error.

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

Initializes a new instance of the ErrorWrapper class with an object containing the HRESULT of the error.

[Visual Basic] Public Sub New(Object)
[C#] public ErrorWrapper(object);
[C++] public: ErrorWrapper(Object*);
[JScript] public function ErrorWrapper(Object);

See Also

ErrorWrapper Class | ErrorWrapper Members | System.Runtime.InteropServices Namespace

Show: