संपादित करें

इसके माध्यम से साझा किया गया


SecurityElement.AddChild(SecurityElement) Method

Definition

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.

Applies to