IVsUIShell.GetErrorInfo(String) 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.
Gets the text of error messages.
public:
int GetErrorInfo([Runtime::InteropServices::Out] System::String ^ % pbstrErrText);
int GetErrorInfo([Runtime::InteropServices::Out] std::wstring const & & pbstrErrText);
public int GetErrorInfo (out string pbstrErrText);
abstract member GetErrorInfo : string -> int
Public Function GetErrorInfo (ByRef pbstrErrText As String) As Integer
Parameters
- pbstrErrText
- String
[out] Pointer to a string containing the error text.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsUIShell::GetErrorInfo(
[out]BSTR *pbstrErrText
);
This method is equivalent to calling the Windows API GetErrorInfo
.