VCCodeStruct.Children 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取此代码构造中包含的对象的集合。
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 集合。
- 属性
注解
如果对象没有任何子级,则 Nothing 返回或 null 。
Children 主要由使用 Visual C++ 。 Children 从代码元素返回每个对象可再用。
若要遍历命名空间的成员或类型 (类、结构、接口等) ,你必须 (查询) 接口的 QI,或将转换为 CodeElement CodeNamespace ,然后使用 Members 属性。
Children 返回 CodeElement 可通过此代码元素引用的所有相关对象的集合。
Children属性可能返回 Nothing 或, null 具体取决于对象和语言。 不需要在中支持此项 Visual Studio 。