XmlComment(String, XmlDocument) 构造函数
定义
初始化 XmlComment 类的新实例。Initializes a new instance of the XmlComment class.
protected public:
XmlComment(System::String ^ comment, System::Xml::XmlDocument ^ doc);
protected internal XmlComment (string comment, System.Xml.XmlDocument doc);
protected internal XmlComment (string? comment, System.Xml.XmlDocument doc);
new System.Xml.XmlComment : string * System.Xml.XmlDocument -> System.Xml.XmlComment
Protected Friend Sub New (comment As String, doc As XmlDocument)
参数
- comment
- String
注释元素的内容。The content of the comment element.
- doc
- XmlDocument
父 XML 文档。The parent XML document.
注解
不要直接实例化 XmlComment ,而应使用方法(如) CreateNode 。Do not instantiate a XmlComment directly; instead, use methods such as CreateNode.