Aracılığıyla paylaş


SyndicationFeed.Contributors Özellik

Tanım

Akışa katkıda bulunanların bir koleksiyonunu alır.

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

Özellik Değeri

Collection<SyndicationPerson>

Akışa SyndicationPerson katkıda bulunanları temsil eden nesne koleksiyonu.

Örnekler

Aşağıdaki kod, bir koleksiyonuna katkıda bulunan ekleme işlemini Contributors SyndicationFeedgösterir.

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
feed.Contributors.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.Contributors.Add(New SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http:'contoso/jesper"))

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

<contributor>
  <name>Lene Aalling</name>
  <uri>http://contoso/Aalling</uri>
  <email>Lene.Aaling@contoso.com</email>
</contributor>

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

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

Açıklamalar

Atom 1.0'a seri hale getirildiğinde, koleksiyondaki her SyndicationPerson biri bir <contributor> öğeye yazılır.

RSS 2.0'a seri hale getirildiğinde, koleksiyondaki her SyndicationPerson biri bir <a10:contributor> öğeye yazılır.

Şunlara uygulanır