CodeGroup.Children Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets an ordered list of the child code groups of a code group.

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

public IList Children { get; set; }

Property Value

Type: System.Collections.IList

A list of child code groups.

Exception Condition

An attempt is made to set this property to null.


An attempt is made to set this property with a list of children that are not CodeGroup objects.

The order of child code groups is significant for certain code groups.


The return value is a copy of the child code list. Do not use the returned list to add a child code group; instead, use the AddChild method.

.NET Framework
Available since 1.1
Return to top