Sdílet prostřednictvím


ISuggestedActionCategoryRegistryService2.OrderCategoriesByPrecedence Method

Definition

Accepts an ISuggestedActionCategorySet of ISuggestedActionCategorys and sorts them in order from highest to lowest precedence.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategory ^> ^ OrderCategoriesByPrecedence(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ categorySet);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategory> OrderCategoriesByPrecedence (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet categorySet);
abstract member OrderCategoriesByPrecedence : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet -> seq<Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategory>
Public Function OrderCategoriesByPrecedence (categorySet As ISuggestedActionCategorySet) As IEnumerable(Of ISuggestedActionCategory)

Parameters

categorySet
ISuggestedActionCategorySet

A set of categories to sort.

Returns

An enumerable of sorted categories.

Remarks

Precedence is defined by OrderAttributes present on SuggestedActionCategoryDefinitions.

Applies to