Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Runtime.​InteropServices.​COMException

Assembly: System.Runtime.InteropServices

Inheritance: object → ExceptionSystemExceptionExternalException → COMException

The exception that is thrown when an unrecognized HRESULT is returned from a COM method call.

Properties

public int
ErrorCode
public string
HelpLink
public int
HResult
public Exception
InnerException
public string
Message
public string
Source
public string
StackTrace
TargetSite

Methods

public string
ToString​()
Returns A string containing the <see cref="P:System.Exception.HResult" /> , <see cref="P:System.Exception.Message" /> , <see cref="P:System.Exception.InnerException" /> , and <see cref="P:System.Exception.StackTrace" /> properties of the exception.
Converts the contents of the exception to a string.
public Exception
GetBaseException​()
Inherited from Exception
public void
GetObjectData​(Serialization.SerializationInfo info, Serialization.StreamingContext context)
Inherited from Exception
public Type
GetType​()
Inherited from Exception
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object