Share via


XPathNavigator.PrependChildElement Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a new child element at the beginning of the list of child nodes of the current node using the namespace prefix, local name, and namespace URI specified with the value specified.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

Syntax

'Declaration
Public Overridable Sub PrependChildElement ( _
    prefix As String, _
    localName As String, _
    namespaceURI As String, _
    value As String _
)
public virtual void PrependChildElement(
    string prefix,
    string localName,
    string namespaceURI,
    string value
)

Parameters

  • prefix
    Type: System.String
    The namespace prefix of the new child element (if any).
  • localName
    Type: System.String
    The local name of the new child element (if any).
  • namespaceURI
    Type: System.String
    The namespace URI of the new child element (if any). Empty and nulla null reference (Nothing in Visual Basic) are equivalent.
  • value
    Type: System.String
    The value of the new child element. If Empty or nulla null reference (Nothing in Visual Basic) are passed, an empty element is created.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.