次の方法で共有


IVsDebugger2.ShowSource Method

Definition

Displays a source file in the IDE. Takes as arguments a pointer to an IUnknown interface that can be queried for IDebugDocumentContext2 and display options.

public:
 int ShowSource(System::Object ^ pUnkDebugDocContext, int fMakeActive, int fAlwaysMoveCaret, int fPromptToFindSource, int fIgnoreIfNotFound, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ % ppTextView);
public:
 int ShowSource(Platform::Object ^ pUnkDebugDocContext, int fMakeActive, int fAlwaysMoveCaret, int fPromptToFindSource, int fIgnoreIfNotFound, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ &  ppTextView);
int ShowSource(winrt::Windows::Foundation::IInspectable const & pUnkDebugDocContext, int fMakeActive, int fAlwaysMoveCaret, int fPromptToFindSource, int fIgnoreIfNotFound, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & & ppTextView);
public int ShowSource (object pUnkDebugDocContext, int fMakeActive, int fAlwaysMoveCaret, int fPromptToFindSource, int fIgnoreIfNotFound, out Microsoft.VisualStudio.TextManager.Interop.IVsTextView ppTextView);
abstract member ShowSource : obj * int * int * int * int * IVsTextView -> int
Public Function ShowSource (pUnkDebugDocContext As Object, fMakeActive As Integer, fAlwaysMoveCaret As Integer, fPromptToFindSource As Integer, fIgnoreIfNotFound As Integer, ByRef ppTextView As IVsTextView) As Integer

Parameters

pUnkDebugDocContext
Object

[in] Pointer to an IUnknown interface on an object implementing IDebugDocumentContext2.

fMakeActive
Int32

[in] Boolean. If true, makes the source file window the active window.

fAlwaysMoveCaret
Int32

[in] Boolean. If true, move the caret to the position indicated by the document context through the IDebugDocumentContext2::GetStatementRange method of the IDebugDocumentContext2 interface.

fPromptToFindSource
Int32

[in] Boolean. If true, prompt the user if the file is not found.

fIgnoreIfNotFound
Int32

[in] Boolean. If true, do not try to find the file in the future if it is not found now.

ppTextView
IVsTextView

[out] Pointer to a IVsTextView interface representing the opened source view. May be null.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

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

Applies to