Children Property
Collapse the table of content
Expand the table of content

SecurityElement.Children Property

 

Gets or sets the array of child elements of the XML element.

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

public ArrayList Children { get; set; }

Property Value

Type: System.Collections.ArrayList

The ordered child elements of the XML element as security elements.

Exception Condition
ArgumentException

A child of the XML parent node is null.

If a SecurityElement contains both Text and Children, Text will appear first.

The following code shows the use of the Children property to get the array of child elements of the XML element. This code example is part of a larger example provided for the SecurityElement class.

string childrenCount = xmlElement.Children.Count.ToString();

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft