Share via


ErrorHandler.Succeeded Method

Determines whether an HRESULT is a success return code.

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

Syntax

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

Parameters

Return Value

Type: System.Boolean
true if hr represents a success otherwise false.

.NET Framework Security

See Also

Reference

ErrorHandler Class

Microsoft.VisualStudio Namespace

Other Resources

HRESULT Information in Managed Code