Share via


ErrorHandler.CallWithCOMConvention Method

Include Protected Members
Include Inherited Members

Catches all but critical exceptions and returns the corresponding HRESULT.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member CallWithCOMConvention(Action, Boolean) Use this method when an interop interface might be implemented by managed code, and it is expected to return HRESULT error codes but also throws exceptions. This method catches all except the critical exceptions and returns the corresponding HRESULT for the caught exception.
Public methodStatic member CallWithCOMConvention(Func<Int32>, Boolean)

Top

See Also

Reference

ErrorHandler Class

Microsoft.VisualStudio Namespace