Compartilhar via


ErrorHandler.Failed(Int32) Method

Definition

Checks if a HRESULT is an error return code.

public:
 static bool Failed(int hr);
public:
 static bool Failed(int hr);
 static bool Failed(int hr);
public static bool Failed (int hr);
static member Failed : int -> bool
Public Shared Function Failed (hr As Integer) As Boolean

Parameters

hr
Int32

The HRESULT to test.

Returns

true if hr represents an error, false otherwise.

Applies to