Rss20ItemFormatter.PreserveAttributeExtensions 属性
定义
获取或设置一个值,该值指定是否在序列化过程中保留属性扩展。Gets or sets a value that specifies whether to preserve attribute extensions during serialization.
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
属性值
一个指定是否在序列化过程中保留属性扩展的值。A value that specifies whether to preserve attribute extensions during serialization.
注解
此属性的默认值为 true。The default value of this property is true. 属性扩展是 Atom 1.0 规范中未定义的 XML 属性。Attribute extensions are XML attributes that are not defined in the Atom 1.0 specification. 此属性 (Property) 确定是否在序列化过程中写入这些属性 (Attribute)。This property determines whether to write these attributes during serialization. 同样,此属性 (Property) 也确定是否在反序列化 RSS 2.0 项时保留 AttributeExtensions 实例中 SyndicationItem 属性 (Property) 内的属性 (Attribute) 扩展。Similarly, this property determines whether to preserve attribute extensions inside the AttributeExtensions properties in the SyndicationItem instance when deserializing an RSS 2.0 item.