다음을 통해 공유


VsExpansionPackageClass.EnumerateExpansions Method

Retrieves a list of code snippets for the specified coding language. See EnumerateExpansions.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

‘선언
Public Overridable Function EnumerateExpansions ( _
    guidLang As Guid, _
    fShortCutOnly As Integer, _
    bstrTypes As String(), _
    iCountTypes As Integer, _
    fIncludeNULLType As Integer, _
    fIncludeDuplicates As Integer, _
    <OutAttribute> ByRef pEnum As IVsExpansionEnumeration _
) As Integer
public virtual int EnumerateExpansions(
    Guid guidLang,
    int fShortCutOnly,
    string[] bstrTypes,
    int iCountTypes,
    int fIncludeNULLType,
    int fIncludeDuplicates,
    out IVsExpansionEnumeration pEnum
)
public:
virtual int EnumerateExpansions(
    [InAttribute] Guid guidLang, 
    [InAttribute] int fShortCutOnly, 
    [InAttribute] array<String^>^ bstrTypes, 
    [InAttribute] int iCountTypes, 
    [InAttribute] int fIncludeNULLType, 
    [InAttribute] int fIncludeDuplicates, 
    [OutAttribute] IVsExpansionEnumeration^% pEnum
)
abstract EnumerateExpansions : 
        guidLang:Guid * 
        fShortCutOnly:int * 
        bstrTypes:string[] * 
        iCountTypes:int * 
        fIncludeNULLType:int * 
        fIncludeDuplicates:int * 
        pEnum:IVsExpansionEnumeration byref -> int 
override EnumerateExpansions : 
        guidLang:Guid * 
        fShortCutOnly:int * 
        bstrTypes:string[] * 
        iCountTypes:int * 
        fIncludeNULLType:int * 
        fIncludeDuplicates:int * 
        pEnum:IVsExpansionEnumeration byref -> int 
public function EnumerateExpansions(
    guidLang : Guid, 
    fShortCutOnly : int, 
    bstrTypes : String[], 
    iCountTypes : int, 
    fIncludeNULLType : int, 
    fIncludeDuplicates : int, 
    pEnum : IVsExpansionEnumeration
) : int

Parameters

  • guidLang
    Type: System.Guid
    [in] The GUID of the coding language (typically, this is the language service GUID).
  • fShortCutOnly
    Type: System.Int32
    [in] Non-zero (TRUE) if to retrieve only the shortcut name for each snippet; otherwise, zero (FALSE) to retrieve all information.
  • bstrTypes
    Type: array<System.String[]
    [in] An array strings specifying snippet types to obtain. This can be a null value if iCountTypes is 0. See Remarks.
  • iCountTypes
    Type: System.Int32
    [in] The number of types specified in the bstrTypes array. If this is 0, all types are returned.
  • fIncludeNULLType
    Type: System.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
    Type: System.Int32
    [in] Non-zero (TRUE) if to include duplicate snippets; otherwise, duplicates are left out.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsExpansionManager.EnumerateExpansions(Guid, Int32, array<String[], Int32, Int32, Int32, IVsExpansionEnumeration%)

.NET Framework Security

See Also

Reference

VsExpansionPackageClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace