SyndicationFeed.Categories Property
Gets a collection of categories for the feed.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Property Value
Type: System.Collections.ObjectModel.Collection<SyndicationCategory>A collection of SyndicationCategory objects that represent the categories for the feed.
When serialized to Atom 1.0, each SyndicationCategory in the collection is written to a <category> element.
When serialized to RSS 2.0, each SyndicationCategory in the collection is written to a <category> element.
The following code shows how to add a category to the Categories collection of a SyndicationFeed.
The following XML shows how the Categories collection is serialized to Atom 1.0.
The following XML shows how the Categories collection is serialized to RSS 2.0.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.