WriteXml 方法
将此对象转换为其 XML 表示形式。
命名空间: Microsoft.Synchronization
程序集: Microsoft.Synchronization(在 Microsoft.Synchronization.dll 中)
语法
声明
Public Sub WriteXml ( _
writer As XmlWriter _
)
用法
Dim instance As SyncKnowledge
Dim writer As XmlWriter
instance.WriteXml(writer)
public void WriteXml(
XmlWriter writer
)
public:
virtual void WriteXml(
XmlWriter^ writer
) sealed
abstract WriteXml :
writer:XmlWriter -> unit
override WriteXml :
writer:XmlWriter -> unit
public final function WriteXml(
writer : XmlWriter
)
参数
- writer
类型:System.Xml. . :: . .XmlWriter
该对象的 XML 表示形式将被写入此 XML 编写器流。
实现
IXmlSerializable. . :: . .WriteXml(XmlWriter)
异常
异常 | 条件 |
---|---|
ArgumentNullException | writer 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。 |