Condividi tramite


ErrorHandler.Failed Method

Checks if an HRESULT is an error return code.

Namespace:  Microsoft.VisualStudio
Assemblies:   Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Dichiarazione
Public Shared Function Failed ( _
    hr As Integer _
) As Boolean
'Utilizzo
Dim hr As Integer
Dim returnValue As Boolean

returnValue = ErrorHandler.Failed(hr)
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

Return Value

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

.NET Framework Security

See Also

Reference

ErrorHandler Class

ErrorHandler Members

Microsoft.VisualStudio Namespace

Other Resources

HRESULT Information in Managed Code