共用方式為


ICompletionBroker.CreateCompletionSession 方法

建立完成工作階段,但不加以啟動。

命名空間:  Microsoft.VisualStudio.Language.Intellisense
組件:  Microsoft.VisualStudio.Language.Intellisense (在 Microsoft.VisualStudio.Language.Intellisense.dll 中)

語法

'宣告
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

參數

  • trackCaret
    類型:Boolean

    如果這個工作階段應該追蹤插入號,則為 true,否則為 false。 當插入號會被追蹤,只有其適用性跨越的完成項目包含插入號隨即出現。

傳回值

類型:Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
ICompletionSession

備註

如果您想要啟動它之前的工作階段設定某些屬性,您可以使用這個方法。

.NET Framework 安全性

請參閱

參考

ICompletionBroker 介面

Microsoft.VisualStudio.Language.Intellisense 命名空間