IVsPropertyPageFrame.ReportError(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reports a COM (HRESULT) error.
public:
int ReportError(int hrErr);
public:
int ReportError(int hrErr);
int ReportError(int hrErr);
public int ReportError (int hrErr);
abstract member ReportError : int -> int
Public Function ReportError (hrErr As Integer) As Integer
Parameters
- hrErr
- Int32
[in] An HRESULT.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Use this method instead of ReportErrorInfo if the error comes from one of this interface's methods.
Using this method prevents displaying duplicate errors. The method shows the error only if the component supports IErrorInfo. Thus components that do not implement IErrorInfo that put up their own errors and return E_FAIL, won't show two error messages.
COM Signature
From vsshell.idl:
[C++]
HRESULT IVsPropertyPageFrame::ReportError(
HRESULT hrErr
);