SyndicationItem::Authors Property
.NET Framework (current version)
Gets the authors of the syndication item.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property Collection<SyndicationPerson^>^ Authors { Collection<SyndicationPerson^>^ get(); }
Property Value
Type: System.Collections.ObjectModel::Collection<SyndicationPerson^>^A collection of SyndicationPerson objects that represent the authors of the syndication item.
When serializing to Atom 1.0, an <author> element is written for each SyndicationPerson in the Authors collection.
When serializing to RSS 2.0. a <managingEditor> element is written if the Authors collection has only one SyndicationPerson, otherwise a <a10:author> element is written for each SyndicationPerson in the Authors collection.
The following code shows how to add an author to the Authors collection of a SyndicationItem.
The following XML shows how the preceding SyndicationItem is serialized to Atom 1.0.
<entry> <id>Item ID</id> <title type="text">My Item</title> <updated>2007-03-16T23:00:59Z</updated> <author> <name>Lene Aaling</name> <uri>http://contoso/Lene</uri> <email>lene@contoso.com</email> </author> <link rel="alternate" href="http://someserver/MyItem" /> <link rel="alternate" type="text/html" title="Alternate Link" length="1000" href="http://otherserver/Item" /> <content type="text">This is some content</content> </entry>
The following XML shows how the preceding SyndicationItem is serialized to RSS 2.0.
<item> <guid isPermaLink="false">Item ID</guid> <link>http://someserver/MyItem</link> <author>someone@mycompany.com</author> <title>My Item</title> <description>This is some content</description> <a10:link rel="alternate" type="text/html" title="Alternate Link" length="1000" href="http://otherserver/Item" /> <a10:updated>2007-03-16T23:00:59Z</a10:updated> </item>
.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Available since 3.5
Silverlight
Available since 2.0
Show: