SecurityElement.AddChild(SecurityElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a child element to the XML element.
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)
Parameters
- child
- SecurityElement
The child element to add.
Exceptions
The child
parameter is null
.
Examples
The following code shows the use of the AddChild method to add a child element to the XML element. This code example is part of a larger example provided for the SecurityElement class.
xmlRootElement->AddChild( windowsRoleElement );
xmlRootElement.AddChild(windowsRoleElement);
xmlRootElement.AddChild(windowsRoleElement)
Remarks
The child element is added following any previously existing child elements.