ErrorHandler.Failed Method

Determines whether an HRESULT is an error return code.

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

Syntax

'Declaration
Public Shared Function Failed ( _
    hr As Integer _
) As Boolean
public static bool Failed(
    int hr
)
public:
static bool Failed(
    int hr
)
static member Failed : 
        hr:int -> bool
public static function Failed(
    hr : int
) : boolean

Parameters

  • hr
    Type: Int32

    The HRESULT to test.

Return Value

Type: Boolean
true if hr represents an error, otherwise false.

.NET Framework Security

See Also

Reference

ErrorHandler Class

Microsoft.VisualStudio Namespace

Other Resources

HRESULT Information in Managed Code