Udostępnij przez


SecurityElement.AddChild(SecurityElement) Metoda

Definicja

Dodaje element podrzędny do elementu XML.

public:
 void AddChild(System::Security::SecurityElement ^ child);
public void AddChild (System.Security.SecurityElement child);
member this.AddChild : System.Security.SecurityElement -> unit
Public Sub AddChild (child As SecurityElement)

Parametry

child
SecurityElement

Element podrzędny do dodania.

Wyjątki

Parametr child ma wartość null.

Przykłady

Poniższy kod przedstawia użycie AddChild metody w celu dodania elementu podrzędnego do elementu XML. Ten przykład kodu jest częścią większego przykładu udostępnionego SecurityElement dla klasy .

xmlRootElement->AddChild( windowsRoleElement );
xmlRootElement.AddChild(windowsRoleElement);
xmlRootElement.AddChild(windowsRoleElement)

Uwagi

Element podrzędny jest dodawany po poprzednio istniejących elementach podrzędnych.

Dotyczy