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

定義

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

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

參數

prefix
String

命名空間前置字元;請參閱 Prefix 屬性。

localName
String

本機名稱;請參閱 LocalName 屬性。

namespaceURI
String

命名空間 URI;請參閱 NamespaceURI 屬性。

doc
XmlDocument

父代 XML 文件。

備註

請勿直接具現化 XmlElement ,而是使用 例如 CreateElement 的方法。

適用於