SecurityElement.AddChild(SecurityElement) Méthode

Définition

Ajoute un élément enfant à l'élément 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)

Paramètres

child
SecurityElement

Élément enfant à ajouter.

Exceptions

Le paramètre child a la valeur null.

Exemples

Le code suivant illustre l’utilisation de la AddChild méthode pour ajouter un élément enfant à l’élément XML. Cet exemple de code fait partie d’un exemple plus complet fourni pour la SecurityElement classe.

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

Remarques

L’élément enfant est ajouté à la suite des éléments enfants précédemment existants.

S’applique à