共用方式為


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

寫入組態檔的 XML 寫入器。

serializeCollectionKey
Boolean

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

傳回

Boolean

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

適用於