C# 클래스 Microsoft.Languages.Editor.Controller.Constants.VSConstants.ErrorHandler

파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
Failed ( int hr ) : bool

Checks if a HRESULT is an error return code.

Succeeded ( int hr ) : bool

Checks if a HRESULT is a success return code.

ThrowOnFailure ( int hr ) : int

Checks if the parameter is a success or failure HRESULT and throws an exception in case of failure.

비공개 메소드들

메소드 설명
ErrorHandler ( ) : System

메소드 상세

Failed() 공개 정적인 메소드

Checks if a HRESULT is an error return code.
public static Failed ( int hr ) : bool
hr int The HRESULT to test.
리턴 bool

Succeeded() 공개 정적인 메소드

Checks if a HRESULT is a success return code.
public static Succeeded ( int hr ) : bool
hr int The HRESULT to test.
리턴 bool

ThrowOnFailure() 공개 정적인 메소드

Checks if the parameter is a success or failure HRESULT and throws an exception in case of failure.
public static ThrowOnFailure ( int hr ) : int
hr int The HRESULT to test.
리턴 int