SetValue()

XPathNavigator::SetValue(String) method

Sets the value of the current node.

virtual void System::Xml::XPath::XPathNavigator::SetValue(String value)

Arguments

ParameterTypeDescription
valueStringThe new value of the node.

Exceptions

ExceptionDescription
ArgumentNullExceptionThe value parameter is nullptr.
InvalidOperationExceptionThe XPathNavigator is positioned on the root node, a namespace node, or the specified value is invalid.
NotSupportedExceptionThe XPathNavigator does not support editing.

See Also