System::Xml::XmlTextWriter::WriteProcessingInstruction 方法

XmlTextWriter::WriteProcessingInstruction method

写出一个处理指令,在名称和文本之间留有空格,如下所示:

void System::Xml::XmlTextWriter::WriteProcessingInstruction(String name, String text) override
ParameterType描述
name字符串处理指令的名称。
textStringText 用于包含在处理指令中。

备注

此方法在已调用 XmlTextWriter::WriteStartDocument 之后,用于创建 XML 声明。

另见