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 命名空间