IVsImmediateStatementCompletion2.SetCompletionContext Method

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

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

声明
Function SetCompletionContext ( _
    pszFilePath As String, _
    pBuffer As IVsTextLines, _
    ptsCurStatement As TextSpan(), _
    punkContext As Object, _
    pTextView As IVsTextView _
) As Integer
int SetCompletionContext(
    string pszFilePath,
    IVsTextLines pBuffer,
    TextSpan[] ptsCurStatement,
    Object punkContext,
    IVsTextView pTextView
)
int SetCompletionContext(
    [InAttribute] String^ pszFilePath, 
    [InAttribute] IVsTextLines^ pBuffer, 
    [InAttribute] array<TextSpan>^ ptsCurStatement, 
    [InAttribute] Object^ punkContext, 
    [InAttribute] IVsTextView^ pTextView
)
abstract SetCompletionContext : 
        pszFilePath:string * 
        pBuffer:IVsTextLines * 
        ptsCurStatement:TextSpan[] * 
        punkContext:Object * 
        pTextView:IVsTextView -> int 
function SetCompletionContext(
    pszFilePath : String, 
    pBuffer : IVsTextLines, 
    ptsCurStatement : TextSpan[], 
    punkContext : Object, 
    pTextView : IVsTextView
) : int

Parameters

  • pszFilePath
    Type: System.String
    [in] The path to the file containing the current statement.
  • punkContext
    Type: System.Object
    [in] may be used to pass additional context in future. If none is available, NULL is passed.

Return Value

Type: System.Int32
Returns S_OK if the method succeeds.

Remarks

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

.NET Framework Security

See Also

Reference

IVsImmediateStatementCompletion2 Interface

Microsoft.VisualStudio.TextManager.Interop Namespace