SecurityElement.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 the array of child elements of the XML element.

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

Public Property Children As ArrayList

Property Value

Type: System.Collections.ArrayList

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

Exception Condition

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.

Dim childrenCount As String = xmlElement.Children.Count.ToString()

.NET Framework
Available since 1.1
Return to top