This documentation is archived and is not being maintained.

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 */
public ArrayList get_Children ()

/** @property */
public void set_Children (ArrayList value)

public function get Children () : ArrayList

public function set Children (value : ArrayList)

Not applicable.

Property Value

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

Exception typeCondition

ArgumentException

A child of the XML parent node is a null reference (Nothing in Visual Basic).

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();

String childrenCount 
    = System.Convert.ToString(xmlElement.get_Children().get_Count());

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: