SuggestionServiceBase.TryRegisterProviderAsync Method

Definition

Register a provider for a specific view.

public abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Suggestions.SuggestionManagerBase?> TryRegisterProviderAsync (Microsoft.VisualStudio.Language.Suggestions.SuggestionProviderBase provider, Microsoft.VisualStudio.Text.Editor.ITextView view, string name, System.Threading.CancellationToken cancel);
abstract member TryRegisterProviderAsync : Microsoft.VisualStudio.Language.Suggestions.SuggestionProviderBase * Microsoft.VisualStudio.Text.Editor.ITextView * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Suggestions.SuggestionManagerBase>
Public MustOverride Function TryRegisterProviderAsync (provider As SuggestionProviderBase, view As ITextView, name As String, cancel As CancellationToken) As Task(Of SuggestionManagerBase)

Parameters

view
ITextView
name
String

Returns

Returns null if there is already a provider registered with the specified name.

Applies to