Op Englesch liesen Editéieren

Deelen iwwer


SyndicationContent.AttributeExtensions Property

Definition

Gets the attribute extensions for this content.

C#
public System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName,string> AttributeExtensions { get; }

Property Value

A dictionary that contains the attribute extensions for this object.

Examples

The following XML shows how a custom attribute added to a TextSyndicationContent instance is serialized to Atom 1.0.

<content type="text" customAttribute="value">Some text content</content>  

Remarks

Attribute extensions are custom attributes that are not defined by the Atom 1.0 or RSS 2.0 specifications. The syndication object model allows you to add custom attributes to a syndication content type (for example, TextSyndicationContent). When serialized to Atom 1.0, these attributes appear within the <content> element. When serialized to RSS 2.0, these attribute are ignored.

Applies to

Produkt Versiounen
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)