共用方式為


IVsExtensionRepository.GetSubCategories 方法 (Int32, String)

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

Gets the subcategories of a root category.

命名空間:  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, _
    cultureName As String _
) As IEnumerable(Of IRepositoryCategory)
[ObsoleteAttribute("This method is obsolete. Please use GetCategoryTree instead.", 
    true)]
IEnumerable<IRepositoryCategory> GetSubCategories(
    int categoryId,
    string cultureName
)
[ObsoleteAttribute(L"This method is obsolete. Please use GetCategoryTree instead.", 
    true)]
IEnumerable<IRepositoryCategory^>^ GetSubCategories(
    int categoryId, 
    String^ cultureName
)
[<ObsoleteAttribute("This method is obsolete. Please use GetCategoryTree instead.", 
    true)>]
abstract GetSubCategories : 
        categoryId:int * 
        cultureName:string -> IEnumerable<IRepositoryCategory> 
function GetSubCategories(
    categoryId : int, 
    cultureName : String
) : IEnumerable<IRepositoryCategory>

參數

  • categoryId
    類型:Int32

    The Id of the root category to be queried.

  • cultureName
    類型:String

    The current user interface (UI) culture.

傳回值

類型:IEnumerable<IRepositoryCategory>
A collection of IRepositoryCategory objects that represent the subcategories of the root category that is specified by categoryId.

備註

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 命名空間