Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
COMException Class
 COMException Members
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
COMException Members

COMException overview

Public Constructors

public constructorCOMException Constructor Overloaded. Initializes a new instance of the COMException class.

Public Properties

public propertyErrorCode (inherited from ExternalException) Gets the HRESULT of the error.
public propertyHelpLink (inherited from Exception) Gets or sets a link to the help file associated with this exception.
public propertyInnerException (inherited from Exception) Gets the Exception instance that caused the current exception.
public propertyMessage (inherited from Exception) Gets a message that describes the current exception.
public propertySource (inherited from Exception) Gets or sets the name of the application or the object that causes the error.
public propertyStackTrace (inherited from Exception) Gets a string representation of the frames on the call stack at the time the current exception was thrown.
public propertyTargetSite (inherited from Exception) Gets the method that throws the current exception.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetBaseException (inherited from Exception) When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetObjectData (inherited from Exception) When overridden in a derived class, sets the SerializationInfo with information about the exception.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodToString Overridden. Converts the contents of the exception to a string.

Protected Constructors

protected constructorCOMException Constructor Overloaded. Initializes a new instance of the COMException class.

Protected Properties

protected propertyHResult (inherited from Exception) Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

COMException Class | System.Runtime.InteropServices Namespace

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker