HtmlElement.AppendChild Method (HtmlElement)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Adds an element to the end of the child collection for the current HTML element.
Namespace: System.Windows.Browser
Assembly: System.Windows.Browser (in System.Windows.Browser.dll)
Syntax
'Declaration
<SecuritySafeCriticalAttribute> _
Public Sub AppendChild ( _
element As HtmlElement _
)
[SecuritySafeCriticalAttribute]
public void AppendChild(
HtmlElement element
)
Parameters
- element
Type: System.Windows.Browser.HtmlElement
The element to be added.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | element is nulla null reference (Nothing in Visual Basic). |
InvalidOperationException | element is a reference to this HtmlElement. |
Remarks
The specified element is appended to the current HTML element's child collection.
To add a child element at a specified location, use the AppendChild(HtmlElement, HtmlElement) method overload.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.