ErrorHandler.Failed Method (Int32)

 

Determines whether an HRESULT is an error return code.

Namespace:   Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public static bool Failed(
	int hr
)

Parameters

hr
Type: System.Int32

The HRESULT to test.

Return Value

Type: System.Boolean

true if hr represents an error, otherwise false.

Return to top
Show: