次の方法で共有


IIntellisenseControllerProvider.TryCreateIntellisenseController Method

Definition

Attempts to create an IntelliSense controller for a specific text view opened in a specific context.

public:
 Microsoft::VisualStudio::Language::Intellisense::IIntellisenseController ^ TryCreateIntellisenseController(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::ITextBuffer ^> ^ subjectBuffers);
public Microsoft.VisualStudio.Language.Intellisense.IIntellisenseController TryCreateIntellisenseController (Microsoft.VisualStudio.Text.Editor.ITextView textView, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITextBuffer> subjectBuffers);
abstract member TryCreateIntellisenseController : Microsoft.VisualStudio.Text.Editor.ITextView * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITextBuffer> -> Microsoft.VisualStudio.Language.Intellisense.IIntellisenseController
Public Function TryCreateIntellisenseController (textView As ITextView, subjectBuffers As IList(Of ITextBuffer)) As IIntellisenseController

Parameters

textView
ITextView

The text view for which a controller should be created.

subjectBuffers
IList<ITextBuffer>

The set of text buffers with matching content types that are potentially visible in the view.

Returns

A valid IntelliSense controller, or null if none could be created.

Applies to