共用方式為


IVsExtensionRepository.GetSubCategories 方法 (Int32, String, String, List<String>, List<String>, List<Int32>, List<Int32>, String)

注意:這個 API 現在已經過時。

Gets the subcategories of a category as an enumerable IRepositoryCategory instance, based on the category attributes.

命名空間:  Microsoft.VisualStudio.ExtensionManager
組件:  Microsoft.VisualStudio.ExtensionManager (在 Microsoft.VisualStudio.ExtensionManager.dll 中)

語法

'宣告
<ObsoleteAttribute("This method is obsolete. Please use GetCategoryTree instead.",  _
    True)> _
Function GetSubCategories ( _
    categoryId As Integer, _
    projectType As String, _
    templateType As String, _
    skus As List(Of String), _
    subSkus As List(Of String), _
    templateGroupIds As List(Of Integer), _
    vsVersions As List(Of Integer), _
    cultureName As String _
) As IEnumerable(Of IRepositoryCategory)
[ObsoleteAttribute("This method is obsolete. Please use GetCategoryTree instead.", 
    true)]
IEnumerable<IRepositoryCategory> GetSubCategories(
    int categoryId,
    string projectType,
    string templateType,
    List<string> skus,
    List<string> subSkus,
    List<int> templateGroupIds,
    List<int> vsVersions,
    string cultureName
)
[ObsoleteAttribute(L"This method is obsolete. Please use GetCategoryTree instead.", 
    true)]
IEnumerable<IRepositoryCategory^>^ GetSubCategories(
    int categoryId, 
    String^ projectType, 
    String^ templateType, 
    List<String^>^ skus, 
    List<String^>^ subSkus, 
    List<int>^ templateGroupIds, 
    List<int>^ vsVersions, 
    String^ cultureName
)
[<ObsoleteAttribute("This method is obsolete. Please use GetCategoryTree instead.", 
    true)>]
abstract GetSubCategories : 
        categoryId:int * 
        projectType:string * 
        templateType:string * 
        skus:List<string> * 
        subSkus:List<string> * 
        templateGroupIds:List<int> * 
        vsVersions:List<int> * 
        cultureName:string -> IEnumerable<IRepositoryCategory> 
function GetSubCategories(
    categoryId : int, 
    projectType : String, 
    templateType : String, 
    skus : List<String>, 
    subSkus : List<String>, 
    templateGroupIds : List<int>, 
    vsVersions : List<int>, 
    cultureName : String
) : IEnumerable<IRepositoryCategory>

參數

  • categoryId
    類型:Int32
  • projectType
    類型:String
  • templateType
    類型:String
  • skus
    類型:List<String>
  • subSkus
    類型:List<String>
  • templateGroupIds
    類型:List<Int32>
  • vsVersions
    類型:List<Int32>
  • cultureName
    類型:String

傳回值

類型:IEnumerable<IRepositoryCategory>

備註

Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.

.NET Framework 安全性

請參閱

參考

IVsExtensionRepository 介面

GetSubCategories 多載

Microsoft.VisualStudio.ExtensionManager 命名空間