Método IVsDebugger2.ShowSource (Object, Int32, Int32, Int32, Int32, IVsTextView)

 

Publicado: junho de 2016

Exibe um arquivo de origem no IDE. Usa como argumentos, um ponteiro para um IUnknown interface que pode ser consultada por IDebugDocumentContext2 e opções de exibição.

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

Sintaxe

int ShowSource(
    object pUnkDebugDocContext,
    int fMakeActive,
    int fAlwaysMoveCaret,
    int fPromptToFindSource,
    int fIgnoreIfNotFound,
    out IVsTextView ppTextView
)
int ShowSource(
    Object^ pUnkDebugDocContext,
    int fMakeActive,
    int fAlwaysMoveCaret,
    int fPromptToFindSource,
    int fIgnoreIfNotFound,
    [OutAttribute] IVsTextView^% ppTextView
)
abstract ShowSource : 
        pUnkDebugDocContext:Object *
        fMakeActive:int *
        fAlwaysMoveCaret:int *
        fPromptToFindSource:int *
        fIgnoreIfNotFound:int *
        ppTextView:IVsTextView byref -> int
Function ShowSource (
    pUnkDebugDocContext As Object,
    fMakeActive As Integer,
    fAlwaysMoveCaret As Integer,
    fPromptToFindSource As Integer,
    fIgnoreIfNotFound As Integer,
    <OutAttribute> ByRef ppTextView As IVsTextView
) As Integer

Parâmetros

  • pUnkDebugDocContext
    Type: System.Object

    [in] Ponteiro para um IUnknown interface em um objeto que implementa IDebugDocumentContext2.

  • fMakeActive
    Type: System.Int32

    [in] Booleano. Se true, faz a janela de arquivo de origem na janela ativa.

  • fAlwaysMoveCaret
    Type: System.Int32

    [in] Booleano. Se true, mover o cursor para a posição indicada pelo contexto do documento por meio do método IDebugDocumentContext2::GetStatementRange da interface IDebugDocumentContext2.

  • fPromptToFindSource
    Type: System.Int32

    [in] Booleano. Se true, solicitar que o usuário se o arquivo não for encontrado.

  • fIgnoreIfNotFound
    Type: System.Int32

    [in] Booleano. Se true, não tente localizar o arquivo no futuro, se não for encontrado agora.

Valor Retornado

Type: System.Int32

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

Comentários

COM assinatura

De vsshell80.idl:

HRESULT IVsDebugger2::ShowSource(
   [in] IUnknown *pUnkDebugDocContext,
   [in] BOOL fMakeActive,
   [in] BOOL fAlwaysMoveCaret,
   [in] BOOL fPromptToFindSource,
   [in] BOOL fIgnoreIfNotFound,
   [out] IVsTextView **ppTextView
);

Confira Também

Interface IVsDebugger2
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao início