SecurityElement.Children Vlastnost

Definice

Získá nebo nastaví pole podřízených elementů XML elementu.

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

Hodnota vlastnosti

Seřazené podřízené elementy elementu XML jako prvky zabezpečení.

Výjimky

Podřízený nadřazený uzel XML je null.

Příklady

Následující kód ukazuje použití Children vlastnosti k získání pole podřízených elementů elementu XML. Tento příklad kódu je součástí většího příkladu SecurityElement pro třídu.

String^ childrenCount = xmlElement->Children->Count.ToString();
string childrenCount = xmlElement.Children.Count.ToString();
Dim childrenCount As String = xmlElement.Children.Count.ToString()

Poznámky

Pokud obsahuje SecurityElement a TextChildren, Text zobrazí se jako první.

Platí pro