SecurityElement.Children Właściwość

Definicja

Pobiera lub ustawia tablicę elementów podrzędnych elementu XML.

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

Wartość właściwości

Uporządkowane elementy podrzędne elementu XML jako elementy zabezpieczeń.

Wyjątki

Element podrzędny węzła nadrzędnego XML to null.

Przykłady

Poniższy kod przedstawia użycie Children właściwości w celu pobrania tablicy elementów podrzędnych elementu XML. Ten przykład kodu jest częścią większego przykładu podanego SecurityElement dla klasy.

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

Uwagi

Jeśli element SecurityElement zawiera zarówno , jak Text i Children, Text zostanie wyświetlony jako pierwszy.

Dotyczy