다음을 통해 공유


ErrorHandler.Succeeded Method

Checks if an HRESULT is a success 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

‘선언
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
)
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

ErrorHandler Members

Microsoft.VisualStudio Namespace

Other Resources

HRESULT Information in Managed Code