XmlElement(String, String, String, XmlDocument) XmlElement(String, String, String, XmlDocument) XmlElement(String, String, String, XmlDocument) XmlElement(String, String, String, XmlDocument) Constructor

定義

初始化 XmlElement 類別的新執行個體。Initializes a new instance of the XmlElement class.

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);
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 String String String

命名空間前置字元;請參閱 Prefix 屬性。The namespace prefix; see the Prefix property.

localName
String String String String

本機名稱;請參閱 LocalName 屬性。The local name; see the LocalName property.

namespaceURI
String String String String

命名空間 URI;請參閱 NamespaceURI 屬性。The namespace URI; see the NamespaceURI property.

doc
XmlDocument XmlDocument XmlDocument XmlDocument

父代 XML 文件。The parent XML document.

備註

不要XmlElement直接具現化, 而是使用CreateElement之類的方法。Do not instantiate an XmlElement directly; instead, use methods such as CreateElement.

適用於