ICompletionBroker.CreateCompletionSession Method
Creates a completion session, but does not start it.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
Syntax
‘선언
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
Parameters
- textView
Type: Microsoft.VisualStudio.Text.Editor.ITextView
The ITextView over which to create a completion session.
- triggerPoint
Type: Microsoft.VisualStudio.Text.ITrackingPoint
The ITrackingPoint in the text buffer at which statement completion is requested.
- trackCaret
Type: System.Boolean
true if this session should track the caret, false otherwise. When the caret is tracked, only the completion items whose applicability span contains the caret will be displayed.
Return Value
Type: Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
The ICompletionSession.
Remarks
You can use this method if you want to set some properties on the session before starting it.
.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.