Método IVsUIShell.GetErrorInfo (String)

 

Publicado: abril de 2016

Obtém o texto das mensagens de erro.

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

Sintaxe

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

Parâmetros

  • pbstrErrText
    [out] Ponteiro para uma seqüência de caracteres que contém o texto de erro.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De vsshell.idl:

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

Esse método é equivalente a chamar a API do Windows GetErrorInfo.

Consulte também

Interface IVsUIShell
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo