IVsImmediateStatementCompletion2.SetCompletionContext Method

Definition

Sets the current context for statement completion for the command window.

public:
 int SetCompletionContext(Platform::String ^ pszFilePath, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsCurStatement, Platform::Object ^ punkContext, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pTextView);

Parameters

pszFilePath
String

[in] The path to the file containing the current statement.

pBuffer
IVsTextLines

[in] The text buffer containing the current statement.

ptsCurStatement
TextSpan[]

[in] The current statement’s text span.

punkContext
Object

[in] may be used to pass additional context in future. If none is available, NULL is passed.

pTextView
IVsTextView

[in] The text view.

Returns

Returns S_OK if the method succeeds.

Remarks

The command window calls this method to forward the information that the debugger passes via SetCompletionContext.

Applies to