CodeGroup.Children Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
ArgumentNullException

An attempt is made to set this property to null.

ArgumentException

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.

System_CAPS_noteNote

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
Show: