Sdílet prostřednictvím


IVsUIShell.GetErrorInfo – metoda (String)

 

Získá text chybové zprávy.

Obor názvů:   Microsoft.VisualStudio.Shell.Interop
Sestavení:  Microsoft.VisualStudio.Shell.Interop (v Microsoft.VisualStudio.Shell.Interop.dll)

Syntaxe

int GetErrorInfo(
    out string pbstrErrText
)
int GetErrorInfo(
    [OutAttribute] String^% pbstrErrText
)
abstract GetErrorInfo : 
        pbstrErrText:string byref -> int
Function GetErrorInfo (
    <OutAttribute> ByRef pbstrErrText As String
) As Integer

Parametry

  • pbstrErrText
    [výstup] Ukazatel na řetězec obsahující text chyby.

Vrácená hodnota

Type: System.Int32

Pokud metoda uspěje, vrací S_OK.Pokud se nezdaří, vrátí kód chyby.

Poznámky

Podpis COM

Z vsshell.idl:

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

Tato metoda je rovnocenná volání rozhraní API systému Windows GetErrorInfo.

Viz také

IVsUIShell – rozhraní
Microsoft.VisualStudio.Shell.Interop – obor názvů

Zpátky na začátek