ISuggestedActionsSource::GetSuggestedActions Method (ISuggestedActionCategorySet^, SnapshotSpan, CancellationToken)
Visual Studio 2015
Synchronously returns a list of suggested actions for a given span of text.
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
IEnumerable<SuggestedActionSet^>^ GetSuggestedActions( ISuggestedActionCategorySet^ requestedActionCategories, SnapshotSpan range, CancellationToken cancellationToken )
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<SuggestedActionSet^>^A list of suggested actions, or null if no actions can be suggested for a given span of text in the ITextBuffer.
Show: