다음을 통해 공유


ErrorHandler Members

Include Protected Members
Include Inherited Members

Provides methods for dealing with common COM error codes.

The ErrorHandler type exposes the following members.

Methods

  Name Description
Public methodStatic member CallWithCOMConvention(Action)
Public methodStatic member CallWithCOMConvention(Func<TResult>)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic member Failed Checks if an HRESULT is an error return code.
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member IsCriticalException
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member Succeeded Checks if an HRESULT is a success return code.
Public methodStatic member ThrowOnFailure(Int32) Checks if the parameter is a success or failure HRESULT and throws an exception in case of failure.
Public methodStatic member ThrowOnFailure(Int32, array<Int32[]) Checks if the parameter is a success or failure HRESULT and throws an exception if it is a failure that is not included in the array of well-known failures.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

See Also

Reference

ErrorHandler Class

Microsoft.VisualStudio Namespace