ISuggestedAction::HasActionSets Property

Visual Studio 2015
 

Determines whether this action has nested suggested action sets.

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

property bool HasActionSets {
	bool get();
}

Property Value

Type: System::Boolean

True if this action has nested suggested action sets, otherwise false.

This property is expected to be fast, so if calculating the return value is not trivial it's recommended to just return true and delay evaluating the real list of nested actions until the GetActionSetsAsync(CancellationToken) method is called. In other words, the scenario of HasActionSets returning trueand GetActionSetsAsync(CancellationToken) returning null or empty list is supported. On the other hand, if this property returns false, the GetActionSetsAsync(CancellationToken) method will not be called.

Return to top
Show: