ICompletionBroker.TriggerCompletion Method (ITextView)
Starts the process of statement completion, assuming the caret position to be the position at which completions should be inserted.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
Syntax
'宣告
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
Parameters
- textView
Type: Microsoft.VisualStudio.Text.Editor.ITextView
The ITextView over which to trigger statement completion.
Return Value
Type: Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
A IStatementCompletionSession. This may be nulla null reference (Nothing in Visual Basic) if no session could be created.
Remarks
When the caret leaves the applicability span of all the completions in this session, the session will be dismissed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.