ErrorHandler.ThrowOnFailure Method

Include Protected Members
Include Inherited Members

Checks if the parameter is a success or failure HRESULT and throws an exception in case of failure.

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

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.

Top

See Also

Reference

ErrorHandler Class

ErrorHandler Members

Microsoft.VisualStudio Namespace