IVsUIShell::GetErrorInfo Method (String^)

 

Gets the text of error messages.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetErrorInfo(
	[OutAttribute] String^% pbstrErrText
)

Parameters

pbstrErrText
Type: System::String^

[out] Pointer to a string containing the error text.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsUIShell::GetErrorInfo(
   [out]BSTR *pbstrErrText
);

This method is equivalent to calling the Windows API GetErrorInfo.

Return to top
Show: