IVsLibrary.GetSupportedCategoryFields Method
Returns the category values supported by the library for a specified category.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetSupportedCategoryFields ( _
Category As LIB_CATEGORY, _
<OutAttribute> ByRef pCatField As UInteger _
) As Integer
int GetSupportedCategoryFields(
LIB_CATEGORY Category,
out uint pCatField
)
int GetSupportedCategoryFields(
[InAttribute] LIB_CATEGORY Category,
[OutAttribute] unsigned int% pCatField
)
abstract GetSupportedCategoryFields :
Category:LIB_CATEGORY *
pCatField:uint32 byref -> int
function GetSupportedCategoryFields(
Category : LIB_CATEGORY,
pCatField : uint
) : int
Parameters
Category
Type: Microsoft.VisualStudio.Shell.Interop.LIB_CATEGORY[in] Specifies a library's category type. Values are taken from the LIB_CATEGORY enumeration.
pCatField
Type: UInt32%[out] Pointer to a category field object.
Return Value
Type: Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.