ICompletionSourceProvider.TryCreateCompletionSource(ITextBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.