启动语句完成过程,假定插入符号位置为应插入完成项的位置。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Function TriggerCompletion ( _
textView As ITextView _
) As ICompletionSession
ICompletionSession TriggerCompletion(
ITextView textView
)
ICompletionSession^ TriggerCompletion(
ITextView^ textView
)
abstract TriggerCompletion :
textView:ITextView -> ICompletionSession
function TriggerCompletion(
textView : ITextView
) : ICompletionSession
参数
textView
类型:Microsoft.VisualStudio.Text.Editor.ITextView要对其触发语句完成的 ITextView。
返回值
类型:Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
IStatementCompletionSession。会话,如果无法创建,则可能是 nullnull 引用(在 Visual Basic 中为 Nothing) 。
备注
在插入符号在此会议中的所有完成保留适用范围,则会议将关闭。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。