ISuggestedActionsSource.HasSuggestedActionsAsync Method (ISuggestedActionCategorySet, SnapshotSpan, CancellationToken)

Visual Studio 2015
 

Asynchronously determines whether this provider can provide any suggested actions for a given span of text in the ITextBuffer.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Function HasSuggestedActionsAsync (
	requestedActionCategories As ISuggestedActionCategorySet,
	range As SnapshotSpan,
	cancellationToken As CancellationToken
) As Task(Of Boolean)

Parameters

requestedActionCategories
Type: Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet

A set of suggested action categories.

range
Type: Microsoft.VisualStudio.Text.SnapshotSpan

A span of text in the ITextBuffer over which to check for suggested actions.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that is used to cancel checking for suggested actions.

Return Value

Type: System.Threading.Tasks.Task(Of Boolean)

A Task instance that when completed returns true if any suggested actions can be provided, or false otherwise.

Return to top
Show: