This documentation is archived and is not being maintained.

SyndicationFeed.Authors Property

Gets a collection of authors of the feed.

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public Collection<SyndicationPerson> Authors { get; }

Property Value

Type: System.Collections.ObjectModel.Collection<SyndicationPerson>
A collection of SyndicationPerson objects that represents the authors of the feed.

When serialized to Atom 1.0, each SyndicationPerson in the collection is written to an <author> element. When serialized to RSS 2.0, if only a single SyndicationPerson exists in the collection, it is written to a <managingEditor> element. Otherwise, each SyndicationPerson is written to an <a10:author> element.

The following code shows how to add an author to the Authors collection of a SyndicationFeed.

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
feed.Authors.Add(new SyndicationPerson("", "Jesper Aaberg", "http://contoso/jesper"));           

The following XML shows how the Authors collection is serialized to Atom 1.0.

  <name>Jesper Aaberg</name>

The following XML shows how the Authors collection is serialized to RSS 2.0.

  <a10:name>Lene Aalling</a10:name>

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.

.NET Framework

Supported in: 3.5