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

属性值

Boolean

一个指定是否在序列化过程中保留属性扩展的值。

注解

此属性的默认值为 true。 属性扩展是 Atom 1.0 规范中未定义的 XML 属性。 此属性 (Property) 确定是否在序列化过程中写入这些属性 (Attribute)。 同样,此属性 (Property) 也确定是否在反序列化 Atom1.0 源时保留 AttributeExtensions 实例中 SyndicationFeed 属性 (Property) 内的未知属性 (Attribute)。

适用于