XmlText(String, XmlDocument) 构造函数

定义

初始化 XmlText 类的新实例。Initializes a new instance of the XmlText class.

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

参数

strData
String

节点的内容,请参见 Value 属性。The content of the node; see the Value property.

doc
XmlDocument

父 XML 文档。The parent XML document.

注解

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

适用于