Rss20FeedFormatter.PreserveAttributeExtensions 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指定是否在序列化过程中保留属性扩展。
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 属性。 此属性 (Property) 确定是否在序列化过程中写入这些属性 (Attribute)。 同样,此属性 (Property) 也确定是否在反序列化 RSS 2.0 源时保留 AttributeExtensions 实例中 SyndicationFeed 属性 (Property) 内的未知属性 (Attribute)。