Atom10ItemFormatter.PreserveElementExtensions 屬性

定義

取得或設定一個值,這個值會指定序列化期間是否保留項目延伸。Gets or sets a value that specifies whether to preserve element extensions during serialization.

public:
 property bool PreserveElementExtensions { bool get(); void set(bool value); };
public bool PreserveElementExtensions { get; set; }
member this.PreserveElementExtensions : bool with get, set
Public Property PreserveElementExtensions As Boolean

屬性值

指定序列化期間是否保留項目延伸的值。A value that specifies whether to preserve element extensions during serialization.

備註

此屬性的預設值為 trueThe default value of this property is true. 項目延伸是指 Atom 1.0 規格中未定義的 XML 項目。Element extensions are XML elements that are not defined in the Atom 1.0 specification. 這個屬性會判斷序列化期間是否寫入這些項目。This property determines whether to write these elements during serialization. 同樣地,此屬性會決定在還原序列化 Atom1.0 項目時,ElementExtensions 中的 SyndicationItem 屬性,是否保留未知的項目。Similarly, this property determines whether to preserve unknown elements inside the ElementExtensions properties in the SyndicationItem instance when deserializing an Atom1.0 entry.

適用於