Rss20ItemFormatter.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 屬性。 這個屬性 (Property) 會判斷序列化期間是否寫入這些屬性 (Attribute)。 同樣地,此屬性決定在還原序列化 RSS 2.0 項目時, AttributeExtensions 執行個體中的 SyndicationItem 屬性,是否保留屬性延伸。

適用於