XmlSerializationWriter.WriteStartDocument 方法

定义

如果编写器位于 XML 文档的开头,则写入 XML 声明。Writes the XML declaration if the writer is positioned at the start of an XML document.

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 void WriteStartDocument();
protected void WriteStartDocument ();
member this.WriteStartDocument : unit -> unit
Protected Sub WriteStartDocument ()

注解

的受保护成员 XmlSerializationWriter 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

适用于