SecurityElement::AddChild Method (SecurityElement^)

 

Adds a child element to the XML element.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public:
void AddChild(
	SecurityElement^ child
)

Parameters

child
Type: System.Security::SecurityElement^

The child element to add.

Exception Condition
ArgumentNullException

The child parameter is null.

The child element is added following any previously existing child elements.

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 );

.NET Framework
Available since 1.1
Return to top
Show: