SuggestionServiceBase.TryRegisterProviderAsync 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.
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
- provider
- SuggestionProviderBase
- view
- ITextView
- name
- String
- cancel
- CancellationToken
Returns
Returns null if there is already a provider registered with the specified name.