共用方式為


ICompletionBroker.CreateCompletionSession Method

Creates a completion session, but does not start it.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'宣告
Function CreateCompletionSession ( _
    textView As ITextView, _
    triggerPoint As ITrackingPoint, _
    trackCaret As Boolean _
) As ICompletionSession
ICompletionSession CreateCompletionSession(
    ITextView textView,
    ITrackingPoint triggerPoint,
    bool trackCaret
)
ICompletionSession^ CreateCompletionSession(
    ITextView^ textView, 
    ITrackingPoint^ triggerPoint, 
    bool trackCaret
)
abstract CreateCompletionSession : 
        textView:ITextView * 
        triggerPoint:ITrackingPoint * 
        trackCaret:bool -> ICompletionSession 
function CreateCompletionSession(
    textView : ITextView, 
    triggerPoint : ITrackingPoint, 
    trackCaret : boolean
) : ICompletionSession

Parameters

  • trackCaret
    Type: System.Boolean
    true if this session should track the caret, false otherwise. When the caret is tracked, only the completion items whose applicability span contains the caret will be displayed.

Return Value

Type: Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
The ICompletionSession.

Remarks

You can use this method if you want to set some properties on the session before starting it.

.NET Framework Security

See Also

Reference

ICompletionBroker Interface

Microsoft.VisualStudio.Language.Intellisense Namespace