XPathNavigator.CreateAttribute Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Creates an attribute node on the current element 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 CreateAttribute ( _
prefix As String, _
localName As String, _
namespaceURI As String, _
value As String _
)
public virtual void CreateAttribute(
string prefix,
string localName,
string namespaceURI,
string value
)
Parameters
- prefix
Type: System.String
The namespace prefix of the new attribute node (if any).
- localName
Type: System.String
The local name of the new attribute node which cannot String.Empty or nulla null reference (Nothing in Visual Basic).
- namespaceURI
Type: System.String
The namespace URI for the new attribute node (if any).
- value
Type: System.String
The value of the new attribute node. If String.Empty or nulla null reference (Nothing in Visual Basic) are passed, an empty attribute node 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.