Aracılığıyla paylaş


SyndicationFeed.Authors Özellik

Tanım

Akışın yazarlarından oluşan bir koleksiyon alır.

public:
 property System::Collections::ObjectModel::Collection<System::ServiceModel::Syndication::SyndicationPerson ^> ^ Authors { System::Collections::ObjectModel::Collection<System::ServiceModel::Syndication::SyndicationPerson ^> ^ get(); };
public System.Collections.ObjectModel.Collection<System.ServiceModel.Syndication.SyndicationPerson> Authors { get; }
member this.Authors : System.Collections.ObjectModel.Collection<System.ServiceModel.Syndication.SyndicationPerson>
Public ReadOnly Property Authors As Collection(Of SyndicationPerson)

Özellik Değeri

Collection<SyndicationPerson>

Akışın SyndicationPerson yazarlarını temsil eden nesne koleksiyonu.

Örnekler

Aşağıdaki kod, bir yazarın koleksiyonuna Authors SyndicationFeednasıl ekleneceğini gösterir.

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

Aşağıdaki XML, koleksiyonun Authors Atom 1.0'a nasıl seri hale getirileceğini gösterir.

<author>
  <name>Jesper Aaberg</name>
  <uri>http://contoso/Aaberg</uri>
  <email>Jesper.Asberg@contoso.com</email>
</author>

Aşağıdaki XML koleksiyonun Authors RSS 2.0'a nasıl seri hale getirileceğini gösterir.

<a10:author>
  <a10:name>Lene Aalling</a10:name>
  <a10:uri>http://contoso/Aalling</a10:uri>
  <a10:email>Lene.Aalling@contoso.com</a10:email>
</a10:author>

Açıklamalar

Atom 1.0'a seri hale getirildiğinde, koleksiyondaki her SyndicationPerson biri bir <author> öğeye yazılır. RSS 2.0'a seri hale getirildiğinde, koleksiyonda yalnızca bir tane SyndicationPerson varsa, bir <managingEditor> öğeye yazılır. Aksi takdirde, her SyndicationPerson bir <a10:author> öğeye yazılır.

Şunlara uygulanır