Dela via


INode.RemoveChild(INode) Method

Definition

Removes the child node indicated by oldChild from the list of children, and returns it.

[Android.Runtime.Register("removeChild", "(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;", "GetRemoveChild_Lorg_w3c_dom_Node_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.INode? RemoveChild (Org.W3c.Dom.INode? oldChild);
[<Android.Runtime.Register("removeChild", "(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;", "GetRemoveChild_Lorg_w3c_dom_Node_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RemoveChild : Org.W3c.Dom.INode -> Org.W3c.Dom.INode

Parameters

oldChild
INode

The node being removed.

Returns

The node removed.

Attributes

Exceptions

NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldChild is not a child of this node.
NOT_SUPPORTED_ERR: if this node is of type Document, this exception might be raised if the DOM implementation doesn't support the removal of the DocumentType child or the Element child.

Remarks

Removes the child node indicated by oldChild from the list of children, and returns it.

Java documentation for org.w3c.dom.Node.removeChild(org.w3c.dom.Node).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to