SyndicationContent.AttributeExtensions Egenskap

Definition

Hämtar attributtilläggen för det här innehållet.

public:
 property System::Collections::Generic::Dictionary<System::Xml::XmlQualifiedName ^, System::String ^> ^ AttributeExtensions { System::Collections::Generic::Dictionary<System::Xml::XmlQualifiedName ^, System::String ^> ^ get(); };
public System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName,string> AttributeExtensions { get; }
member this.AttributeExtensions : System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, string>
Public ReadOnly Property AttributeExtensions As Dictionary(Of XmlQualifiedName, String)

Egenskapsvärde

En ordlista som innehåller attributtilläggen för det här objektet.

Exempel

Följande XML visar hur ett anpassat attribut som läggs till i en TextSyndicationContent instans serialiseras till Atom 1.0.

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

Kommentarer

Attributtillägg är anpassade attribut som inte definieras av Atom 1.0- eller RSS 2.0-specifikationerna. Med syndikeringsobjektmodellen kan du lägga till anpassade attribut till en syndikeringsinnehållstyp (till exempel TextSyndicationContent). När de serialiseras till Atom 1.0 visas dessa attribut i elementet <content> . När attributet serialiseras till RSS 2.0 ignoreras det.

Gäller för