ErrorHandler.Succeeded Method

Checks if an HRESULT is a success return code.

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

Syntax

声明
Public Shared Function Succeeded ( _
    hr As Integer _
) As Boolean
用法
Dim hr As Integer
Dim returnValue As Boolean

returnValue = ErrorHandler.Succeeded(hr)
public static bool Succeeded(
    int hr
)
public:
static bool Succeeded(
    int hr
)
public static function Succeeded(
    hr : int
) : boolean

Parameters

Return Value

Type: System.Boolean

true if hr represents a success otherwise false.

Permissions

See Also

Concepts

HRESULT Information in Managed Code

Reference

ErrorHandler Class

ErrorHandler Members

Microsoft.VisualStudio Namespace