ISuggestedActionsSource.GetSuggestedActions Method (ISuggestedActionCategorySet, SnapshotSpan, CancellationToken)

Visual Studio 2015
 

Synchronously returns a list of suggested actions for a given span of text.

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

Function GetSuggestedActions (
	requestedActionCategories As ISuggestedActionCategorySet,
	range As SnapshotSpan,
	cancellationToken As CancellationToken
) As IEnumerable(Of SuggestedActionSet)

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 return suggested actions.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that allows to cancel getting list of suggested actions.

Return Value

Type: System.Collections.Generic.IEnumerable(Of SuggestedActionSet)

A list of suggested actions, or null if no actions can be suggested for a given span of text in the ITextBuffer.

Return to top
Show: