NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

COMException Constructor

Initializes a new instance of the COMException class.

Overload List

Initializes a new instance of the COMException class with default properties.

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

Initializes a new instance of COMException with a specified message.

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

Initializes a new instance of COMException with a specified message and the exception that is the root cause of this exception.

[Visual Basic] Overloads Public Sub New(String, Exception)
[C#] public COMException(String, Exception);
[C++] public: COMException(String*, Exception);
[JScript] public function COMException(String, Exception);

Initializes a new instance of COMException with a specified message and error code.

[Visual Basic] Overloads Public Sub New(String, Integer)
[C#] public COMException(String, int);
[C++] public: COMException(String*, int);
[JScript] public function COMException(String, int);

See Also

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