VCCodeAttribute.Children Property

Definition

Gets a collection of child code elements of the specified attribute.

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] get; }
[<System.Runtime.InteropServices.DispId(8)>]
[<get: System.Runtime.InteropServices.DispId(8)>]
[<get: System.Runtime.InteropServices.TypeLibFunc>]
member this.Children : EnvDTE.CodeElements
Public ReadOnly Property Children As CodeElements

Property Value

A CodeElements collection, each representing a code element.

Attributes

Remarks

If the attribute has no children, then Nothing or null is returned.

Children returns every object returnable from the code attribute.

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

Children returns the collection of all related VCCodeElement objects that can be referenced via this attribute.

The Children property returns null if the attribute has no children.

Applies to