共用方式為


ICompletionSourceProvider.TryCreateCompletionSource(ITextBuffer) Method

Definition

Creates a completion provider for the given context.

public:
 Microsoft::VisualStudio::Language::Intellisense::ICompletionSource ^ TryCreateCompletionSource(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public Microsoft.VisualStudio.Language.Intellisense.ICompletionSource TryCreateCompletionSource (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member TryCreateCompletionSource : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Language.Intellisense.ICompletionSource
Public Function TryCreateCompletionSource (textBuffer As ITextBuffer) As ICompletionSource

Parameters

textBuffer
ITextBuffer

The text buffer over which to create a provider.

Returns

A valid ICompletionSource instance, or null if none could be created.

Applies to