Share via


ErrorHandler.Succeeded(Int32) Method

Definition

Checks if a HRESULT is a success return code.

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

Parameters

hr
Int32

The HRESULT to test.

Returns

true if hr represents a success, false otherwise.

Applies to