Compartilhar via


IVsLibrary.GetSupportedCategoryFields(LIB_CATEGORY, UInt32) Method

Definition

Returns the category values supported by the library for a specified category.

public:
 int GetSupportedCategoryFields(Microsoft::VisualStudio::Shell::Interop::LIB_CATEGORY Category, [Runtime::InteropServices::Out] System::UInt32 % pCatField);
int GetSupportedCategoryFields(Microsoft::VisualStudio::Shell::Interop::LIB_CATEGORY Category, [Runtime::InteropServices::Out] unsigned int & pCatField);
public int GetSupportedCategoryFields (Microsoft.VisualStudio.Shell.Interop.LIB_CATEGORY Category, out uint pCatField);
abstract member GetSupportedCategoryFields : Microsoft.VisualStudio.Shell.Interop.LIB_CATEGORY * uint32 -> int
Public Function GetSupportedCategoryFields (Category As LIB_CATEGORY, ByRef pCatField As UInteger) As Integer

Parameters

Category
LIB_CATEGORY

[in] Specifies a library's category type. Values are taken from the LIB_CATEGORY enumeration.

pCatField
UInt32

[out] Pointer to a category field object.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsLibrary::GetSupportedCategoryFields(  
   [in] LIB_CATEGORY Category,  
   [out, retval] DWORD *pCatField  
);  

Assign pCatField an enumerator of _LIBCAT_MEMBERTYPE, _LIBCAT_MEMBERACCESS, _LIBCAT_CLASSTYPE, _LIBCAT_CLASSACCESS, _LIBCAT_ACTIVEPROJECT, _LIB_LISTTYPE, _LIBCAT_VISIBILITY, or _LIBCAT_MODIFIERTYPE based on the enumerator value passed in through Category. Category types are enumerated in LIB_CATEGORY.

Return E_FAIL if a category is not supported.

Applies to