Método ICompletionBroker.CreateCompletionSession
Cria uma sessão de conclusão, mas não é iniciado.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (em Microsoft.VisualStudio.Language.Intellisense.dll)
Sintaxe
'Declaração
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
Parâmetros
textView
Tipo: Microsoft.VisualStudio.Text.Editor.ITextViewO ITextView através do qual criar uma sessão de conclusão.
triggerPoint
Tipo: Microsoft.VisualStudio.Text.ITrackingPointO ITrackingPoint no buffer de texto no qual instrução conclusão é solicitada.
trackCaret
Tipo: BooleantrueSe esta sessão deve controlar o cursor, false contrário. Quando o cursor é rastreado, somente os itens de conclusão cuja aplicabilidade span contém o cursor será exibida.
Valor de retorno
Tipo: Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
O ICompletionSession.
Comentários
Você pode usar esse método se você quiser definir algumas propriedades na sessão antes de iniciá-lo.
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.