XmlAttribute(String, String, String, XmlDocument) 建構函式

定義

初始化 XmlAttribute 類別的新執行個體。

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)

參數

prefix
String

命名空間前綴。

localName
String

該屬性的當地名稱。

namespaceURI
String

命名空間統一資源識別碼(URI)。

doc
XmlDocument

父 XML 文件。

備註

不要直接實例化 a XmlAttribute ;而是使用像 CreateAttribute

適用於