Atom10ItemFormatter.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.

備註

此屬性的預設值為 trueThe 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. 同樣地,此屬性會決定在還原序列化 Atom1.0 項目時,AttributeExtensions 中的 SyndicationItem 屬性是否要保留未知的屬性。Similarly, this property determines whether to preserve unknown attributes inside the AttributeExtensions properties in the SyndicationItem instance when deserializing an Atom1.0 entry.

適用於