IVsImmediateStatementCompletion2::SetCompletionContext Method (String^, IVsTextLines^, array<TextSpan>^, Object^, IVsTextView^)
Visual Studio 2015
Sets the current context for statement completion for the command window.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int SetCompletionContext( String^ pszFilePath, IVsTextLines^ pBuffer, array<TextSpan>^ ptsCurStatement, Object^ punkContext, IVsTextView^ pTextView )
Parameters
- pszFilePath
-
Type:
System::String^
[in] The path to the file containing the current statement.
- pBuffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
[in] The text buffer containing the current statement.
- ptsCurStatement
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[in] The current statement’s text span.
- punkContext
-
Type:
System::Object^
[in] may be used to pass additional context in future. If none is available, NULL is passed.
- pTextView
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextView^
[in] The text view.
The command window calls this method to forward the information that the debugger passes via SetCompletionContext.
Show: