Parameters
- node
- The sub-node to be added. It must not be null and should be of a type that is allowed as a sub-node under this node type.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
The value of this parameter cannot be null
(Nothing
in Visual Basic).
The value of this parameter cannot be null
(Nothing
in Visual Basic).
Exception | Description |
---|---|
System.ArgumentException | This exception is thrown when a node (of the same branch/leaf kind) with the same name has already been added, or when the node being node is not of the type that is allowed as a sub-node under this node type. |
System.ArgumentNullException | Thrown when the node argument is null. |
This method is a part of collection initializer implementation.