共用方式為


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

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

See Also

Reference

ICompletionBroker Interface

TriggerCompletion Overload

Microsoft.VisualStudio.Language.Intellisense Namespace