共用方式為


ServiceModelExtensionElement.SerializeElement(XmlWriter, Boolean) 方法

定義

將這個組態項目的內容寫入組態檔。

protected:
 override bool SerializeElement(System::Xml::XmlWriter ^ writer, bool serializeCollectionKey);
protected override bool SerializeElement (System.Xml.XmlWriter writer, bool serializeCollectionKey);
override this.SerializeElement : System.Xml.XmlWriter * bool -> bool
Protected Overrides Function SerializeElement (writer As XmlWriter, serializeCollectionKey As Boolean) As Boolean

參數

writer
XmlWriter

用於寫入至組態檔的 XmlWriter

serializeCollectionKey
Boolean

true 表示只針對集合主要屬性進行序列化,否則為 false

傳回

如果有任何資料已實際序列化,則為 true,否則為 false

適用於