다음을 통해 공유


IVsUIShell.GetErrorInfo Method

Gets the text of error messages.

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

Syntax

‘선언
Function GetErrorInfo ( _
    <OutAttribute> ByRef pbstrErrText As String _
) As Integer
‘사용 방법
Dim instance As IVsUIShell
Dim pbstrErrText As String
Dim returnValue As Integer

returnValue = instance.GetErrorInfo(pbstrErrText)
int GetErrorInfo(
    out string pbstrErrText
)
int GetErrorInfo(
    [OutAttribute] String^% pbstrErrText
)
abstract GetErrorInfo : 
        pbstrErrText:string byref -> int 
function GetErrorInfo(
    pbstrErrText : String
) : int

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.

Remarks

COM Signature

From vsshell.idl:

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

This method is equivalent to calling the Windows API GetErrorInfo.

.NET Framework Security

See Also

Reference

IVsUIShell Interface

IVsUIShell Members

Microsoft.VisualStudio.Shell.Interop Namespace