Edit

Bagikan melalui


XmlAttribute(String, String, String, XmlDocument) Constructor

Definition

Initializes a new instance of the XmlAttribute class.

protected public:
 XmlAttribute(System::String ^ prefix, System::String ^ localName, System::String ^ namespaceURI, System::Xml::XmlDocument ^ doc);
protected internal XmlAttribute (string prefix, string localName, string namespaceURI, System.Xml.XmlDocument doc);
protected internal XmlAttribute (string? prefix, string localName, string? namespaceURI, System.Xml.XmlDocument doc);
new System.Xml.XmlAttribute : string * string * string * System.Xml.XmlDocument -> System.Xml.XmlAttribute
Protected Friend Sub New (prefix As String, localName As String, namespaceURI As String, doc As XmlDocument)

Parameters

prefix
String

The namespace prefix.

localName
String

The local name of the attribute.

namespaceURI
String

The namespace uniform resource identifier (URI).

doc
XmlDocument

The parent XML document.

Remarks

Do not instantiate an XmlAttribute directly; instead, use methods such as CreateAttribute.

Applies to