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) 。 |