次の方法で共有


ErrorHandler.ThrowOnFailure Method

Include Protected Members
Include Inherited Members

Determines whether 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) Determines whether the parameter is a success or failure HRESULT and throws an exception in case of failure.
Public methodStatic member ThrowOnFailure(Int32, array<Int32[]) Determines whether 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

Microsoft.VisualStudio Namespace