次の方法で共有


IVsUIShell.GetErrorInfo(String) Method

Definition

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.

Applies to