VCCodeImport.Children 属性

定义

获取此代码构造中包含的对象的集合。

public:
 property EnvDTE::CodeElements ^ Children { EnvDTE::CodeElements ^ get(); };
[System.Runtime.InteropServices.DispId(8)]
public EnvDTE.CodeElements Children { [System.Runtime.InteropServices.DispId(8)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(8)>]
[<get: System.Runtime.InteropServices.DispId(8)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.Children : EnvDTE.CodeElements
Public ReadOnly Property Children As CodeElements

属性值

CodeElements

一个 CodeElements 集合。

属性

注解

如果对象没有任何子级,则 Nothing 返回或 null

此属性主要由 Visual C++ 使用。 Children 从代码元素返回每个对象可再用。

若要遍历命名空间的成员或类型 (类、结构、接口等) ,必须 () QI 查询接口,或者将转换 CodeElementCodeNamespace ,然后使用 Members 属性。

Children 返回 CodeElement 可通过此代码元素引用的所有相关对象的集合。 Children属性可能返回 Nothing 或, null 具体取决于对象和语言。 在 Visual Studio 中不需要支持此项。

适用于