SecurityElement.AddChild Method (SecurityElement)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: