IVsLibrary.GetSupportedCategoryFields(LIB_CATEGORY, UInt32) 方法

定义

返回指定类别的库支持的类别值。

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

参数

Category
LIB_CATEGORY

中指定库的类别类型。 值取自 LIB_CATEGORY 枚举。

pCatField
UInt32

弄指向类别字段对象的指针。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

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

pCatField _LIBCAT_MEMBERTYPE _LIBCAT_MEMBERACCESS _LIBCAT_CLASSTYPE _LIBCAT_CLASSACCESS _LIBCAT_ACTIVEPROJECT _LIB_LISTTYPE _LIBCAT_VISIBILITY _LIBCAT_MODIFIERTYPE 基于通过传入的枚举器值 Category 分配、、、、、、或的枚举器。 类别类型在中进行枚举 LIB_CATEGORY

E_FAIL如果类别不受支持,则返回。

适用于