Share via


VsExpansionPackageClass.EnumerateExpansions Method

Definition

Retrieves a list of code snippets for the specified coding language. See EnumerateExpansions(Guid, Int32, String[], Int32, Int32, Int32, IVsExpansionEnumeration).

public:
 virtual int EnumerateExpansions(Guid guidLang, int fShortCutOnly, cli::array <System::String ^> ^ bstrTypes, int iCountTypes, int fIncludeNULLType, int fIncludeDuplicates, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsExpansionEnumeration ^ % pEnum) = Microsoft::VisualStudio::TextManager::Interop::IVsExpansionManager::EnumerateExpansions;
public:
 virtual int EnumerateExpansions(Guid guidLang, int fShortCutOnly, cli::array <System::String ^> ^ bstrTypes, int iCountTypes, int fIncludeNULLType, int fIncludeDuplicates, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsExpansionEnumeration ^ % pEnum);
public virtual int EnumerateExpansions (Guid guidLang, int fShortCutOnly, string[] bstrTypes, int iCountTypes, int fIncludeNULLType, int fIncludeDuplicates, out Microsoft.VisualStudio.TextManager.Interop.IVsExpansionEnumeration pEnum);
abstract member EnumerateExpansions : Guid * int * string[] * int * int * int * IVsExpansionEnumeration -> int
override this.EnumerateExpansions : Guid * int * string[] * int * int * int * IVsExpansionEnumeration -> int
Public Overridable Function EnumerateExpansions (guidLang As Guid, fShortCutOnly As Integer, bstrTypes As String(), iCountTypes As Integer, fIncludeNULLType As Integer, fIncludeDuplicates As Integer, ByRef pEnum As IVsExpansionEnumeration) As Integer

Parameters

guidLang
Guid

[in] The GUID of the coding language (typically, this is the language service GUID).

fShortCutOnly
Int32

[in] Non-zero (TRUE) if to retrieve only the shortcut name for each snippet; otherwise, zero (FALSE) to retrieve all information.

bstrTypes
String[]

[in] An array strings specifying snippet types to obtain. This can be a null value if iCountTypes is 0. See Remarks.

iCountTypes
Int32

[in] The number of types specified in the bstrTypes array. If this is 0, all types are returned.

fIncludeNULLType
Int32

[in] Non-zero (TRUE) if to include code snippets with "empty" types in the bstrTypes list (this parameter is ignored if iCountTypes is 0).

fIncludeDuplicates
Int32

[in] Non-zero (TRUE) if to include duplicate snippets; otherwise, duplicates are left out.

pEnum
IVsExpansionEnumeration

[out] An IVsExpansionEnumeration object that contains the desired list of snippets.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to