This documentation is archived and is not being maintained.
SyndicationCategory Class
Visual Studio 2008
A class that represents the category of a syndication feed.
Assembly: System.ServiceModel.Web (in System.ServiceModel.Web.dll)
The following code shows how to create a SyndicationFeed and add a SyndicationItem with a SyndicationCategory.
Imports System Imports System.ServiceModel.Syndication Imports System.Collections.Generic imports System.Collections.ObjectModel Module Program Sub Main() Dim myFeed As New SyndicationFeed("My Test Feed", _ "This is a test feed", _ New Uri("http://FeedServer/Test"), "MyFeedId", DateTime.Now) Dim myItem As New SyndicationItem("Item One Title", _ "Item One Content", _ New Uri("http://FeedServer/Test/ItemOne")) myItem.Categories.Add(New SyndicationCategory("MyCategory")) Dim items As New Collection(Of SyndicationItem)() items.Add(myItem) myFeed.Items = items End Sub End Module
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: