IVsBrowseComponentSet.GetSupportedCategoryFields2 Method

Returns the category values supported by the component set for a specified category.

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

Syntax

'宣言
Function GetSupportedCategoryFields2 ( _
    Category As Integer, _
    <OutAttribute> ByRef pgrfCatField As UInteger _
) As Integer
'使用
Dim instance As IVsBrowseComponentSet
Dim Category As Integer
Dim pgrfCatField As UInteger
Dim returnValue As Integer

returnValue = instance.GetSupportedCategoryFields2(Category, _
    pgrfCatField)
int GetSupportedCategoryFields2(
    int Category,
    out uint pgrfCatField
)
int GetSupportedCategoryFields2(
    [InAttribute] int Category, 
    [OutAttribute] unsigned int% pgrfCatField
)
function GetSupportedCategoryFields2(
    Category : int, 
    pgrfCatField : uint
) : int

Parameters

  • Category
    Type: System.Int32

    A category type that the component set supports. One value or a combination of the _LIB_CATEGORY2 values.

  • pgrfCatField
    Type: System.UInt32%

    [out] A category field. See Remarks for possible values.

Return Value

Type: System.Int32

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT GetSupportedCategoryFields2(
[in] LIB_CATEGORY2 Category, 
[out, retval] DWORD *pgrfCatField
);

Assign the pCatField parameter a value of _LIBCAT_MEMBERTYPE, _LIBCAT_MEMBERACCESS, _LIBCAT_CLASSTYPE, _LIBCAT_CLASSACCESS, _LIBCAT_ACTIVEPROJECT, _LIB_LISTTYPE, _LIBCAT_VISIBILITY, or _LIBCAT_MODIFIERTYPE based on the value passed in through the Category parameter. Category types are enumerated in the _LIB_CATEGORY2 enumeration.

Return E_FAIL if a category is not supported.

Permissions

See Also

Reference

IVsBrowseComponentSet Interface

IVsBrowseComponentSet Members

Microsoft.VisualStudio.Shell.Interop Namespace