ICompletionBroker.TriggerCompletion 方法 (ITextView)
啟動陳述式完成的程序,並假設插入號位置為應插入完成的位置。
命名空間: 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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。