SecurityElement::Children Property

 

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

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

public:
property ArrayList^ Children {
	ArrayList^ get();
	void set(ArrayList^ value);
}

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: