語言

Atom10FeedFormatter.PreserveAttributeExtensions 屬性

定義

取得或設定一個值,指定序列化過程中是否要保留屬性擴充。

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

屬性值

一個指定序列化過程中是否保留屬性擴展的值。

備註

此屬性的預設值為 true。 屬性擴充是 Atom 1.0 規範中未定義的 XML 屬性。 此特性決定序列化時是否寫入這些屬性。 同樣地,這個特性決定在反序列化 Atom1.0 feed 時,是否要保留該屬性AttributeExtensions內SyndicationFeed的未知屬性。

適用於