PersistenceProviderElement.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

返回

Boolean

如果实际序列化所有数据,则为 true;否则为 false

适用于