Children Property (General Extensibility)
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Children Property (General Extensibility)

Visual Studio .NET 2003

Returns a collection of objects contained within this code construct.

[Visual Basic .NET]
Public ReadOnly Property Children() As CodeElements
[Visual Basic 6]
Property Get Children() As CodeElements
HRESULT __stdcall get_Children(
   /* [out, retval] */ CodeElements** retVal
Breakpoints Children {get;}
[JScript .NET]
public function get Children() : CodeElements

Return Value

Returns a CodeElements collection.


If an object has no children, then Nothing is returned.

This property is used primarily by Visual C++ .NET. Children returns every object returnable from a code element. A class, for example, returns members, bases, implemented interfaces, attributes, comments, and so forth.

To iterate through the members of a namespace or type (class, struct, interface, and so forth), then you must QI or caste the CodeElement to a CodeNameSpace and then use the Members property.

Children returns the collection of all related CodeElement objects that can be referenced via this code element. For example, for a CodeClass, this might include the metadata code elements for the class and perhaps the Visual C++ .NET declspecs, along with contributed code based on the Attributed Programming feature in Visual C++ .NET, template parameters, and so forth. A CodeFunction might include all of its parameters, contributed parameters based on the Attributed Programming feature in Visual C++ .NET, and so forth.

The Children property may return Nothing depending on the object and the language. There is no requirement to support this in Visual Studio .NET.

See Also

Applies To: Breakpoint Object | CodeAttribute Object | CodeClass Object | CodeDelegate Object | CodeElement Object | CodeEnum Object | CodeFunction Object | CodeInterface Object | CodeNameSpace Object | CodeParameter Object | CodeProperty Object | CodeStruct Object | CodeType Object | CodeVariable Object | VCCodeAttribute Object | VCCodeBase Object | VCCodeClass Object | VCCodeDelegate Object | VCCodeElement Object | VCCodeEnum Object | VCCodeEvent Object | VCCodeFunction Object | VCCodeIDLCoClass Object | VCCodeIDLImport Object | VCCodeIDLImportLib Object | VCCodeIDLLibrary Object | VCCodeImport Object | VCCodeInclude Object | VCCodeInterface Object | VCCodeMacro Object | VCCodeMap Object | VCCodeMapEntry Object | VCCodeNamespace Object | VCCodeParameter Object | VCCodeProperty Object | VCCodeStruct Object | VCCodeTypedef Object | VCCodeUnion Object | VCCodeVariable Object | VCCodeUsing Object

© 2016 Microsoft