IVsPropertyPageFrame::ReportError Method (Int32)
Visual Studio 2015
Reports a COM (HRESULT) error.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- hrErr
-
Type:
System::Int32
[in] An HRESULT.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
From vsshell.idl:
[C++]
HRESULT IVsPropertyPageFrame::ReportError( HRESULT hrErr );
Show: