XmlElement(String, String, String, XmlDocument) 构造函数

定义

初始化 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);
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 属性。The namespace prefix; see the Prefix property.

localName
String

本地名称,请参见 LocalName 属性。The local name; see the LocalName property.

namespaceURI
String

命名空间 URI,请参见 NamespaceURI 属性。The namespace URI; see the NamespaceURI property.

doc
XmlDocument

父 XML 文档。The parent XML document.

注解

不要直接实例化 XmlElement ,而应使用方法(如) CreateElementDo not instantiate an XmlElement directly; instead, use methods such as CreateElement.

适用于