Szerkesztés

Megosztás a következőn keresztül:


SecurityElement.Children Property

Definition

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

public:
 property System::Collections::ArrayList ^ Children { System::Collections::ArrayList ^ get(); void set(System::Collections::ArrayList ^ value); };
public System.Collections.ArrayList? Children { get; set; }
public System.Collections.ArrayList Children { get; set; }
member this.Children : System.Collections.ArrayList with get, set
Public Property Children As ArrayList

Property Value

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

Exceptions

A child of the XML parent node is null.

Examples

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 = xmlElement.Children.Count.ToString();
Dim childrenCount As String = xmlElement.Children.Count.ToString()

Remarks

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

Applies to