IVsObjectList2.GetExpandable3(UInt32, UInt32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个标志,该标志指示给定列表项是否可展开。
public:
int GetExpandable3(System::UInt32 index, System::UInt32 ListTypeExcluded, [Runtime::InteropServices::Out] int % pfExpandable);
int GetExpandable3(unsigned int index, unsigned int ListTypeExcluded, [Runtime::InteropServices::Out] int & pfExpandable);
public int GetExpandable3 (uint index, uint ListTypeExcluded, out int pfExpandable);
abstract member GetExpandable3 : uint32 * uint32 * int -> int
Public Function GetExpandable3 (index As UInteger, ListTypeExcluded As UInteger, ByRef pfExpandable As Integer) As Integer
参数
- index
- UInt32
中指定感兴趣的列表项的索引。
- ListTypeExcluded
- UInt32
中指定要排除的列表类型。 值取自 _LIB_LISTTYPE 枚举。 这主要是为了 LLT_MEMBERS 在 "对象浏览器" 中取消考虑,它们显示在单独的窗格中。
- pfExpandable
- Int32
弄指向指示可扩展性的标志的指针。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
[C++]
HRESULT IVsObjectList2::GetExpandable3(
[in] ULONG Index,
[in] LIB_LISTTYPE2 ListTypeExcluded,
[out] BOOL *pfExpandable
);
环境的对象管理器调用此方法以确定对象列表节点是否有子列表。 环境还可以通过将枚举中的值分配给参数,指示要从可扩展检查中排除的列表类型 _LIB_LISTTYPE ListTypeExcluded 。 ListTypeExcluded主要从 对象浏览器 查询使用结果,其中成员在右窗格中列出。 如果选择实现 GetCategoryField2 而不是 GetExpandable3 ,请 E_NOTIMPL 从返回 GetExpandable3 。 然后,环境调用 GetCategoryField2 来获取可扩展性信息。