語言

Rss20FeedFormatter.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。 屬性擴充是 RSS 2.0 規範中未定義的 XML 屬性。 此特性決定序列化時是否寫入這些屬性。 同樣地,這個特性決定在反序列化 RSS 2.0 訂閱時,是否保留屬性內AttributeExtensionsSyndicationFeed的未知屬性。

適用於