Partager via


IExpansionManager.EnumerateExpansionsAsync Method

Definition

Aysnchronously enumerates this expansions associated with the given guid.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::TextManager::Interop::IVsExpansionEnumeration ^> ^ EnumerateExpansionsAsync(Guid guidLang, int shortCutOnly, cli::array <System::String ^> ^ types, int countTypes, int includeNULLType, int includeDuplicates);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.TextManager.Interop.IVsExpansionEnumeration> EnumerateExpansionsAsync (Guid guidLang, int shortCutOnly, string[] types, int countTypes, int includeNULLType, int includeDuplicates);
abstract member EnumerateExpansionsAsync : Guid * int * string[] * int * int * int -> System.Threading.Tasks.Task<Microsoft.VisualStudio.TextManager.Interop.IVsExpansionEnumeration>
Public Function EnumerateExpansionsAsync (guidLang As Guid, shortCutOnly As Integer, types As String(), countTypes As Integer, includeNULLType As Integer, includeDuplicates As Integer) As Task(Of IVsExpansionEnumeration)

Parameters

guidLang
Guid

GUID of the language associated with snippets.

shortCutOnly
Int32

Value which determines if only shortcut should be checked for duplication.

types
String[]

Expansion types.

countTypes
Int32

Count of expansion types.

includeNULLType
Int32

Value which determines if NULL snippet type should be allowed.

includeDuplicates
Int32

Value which determines if two snippets of the same title/shortcut can be allowed.

Returns

An asynchronous Task which fetches the expansion enumerator.

Applies to