SyndicationFeed.Contributors Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft eine Auflistung der Mitwirkenden für den Feed ab.
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)
Eigenschaftswert
Eine Auflistung von SyndicationPerson Objekten, die die Mitwirkenden für den Feed darstellen.
Beispiele
Der folgende Code zeigt, wie Sie der Contributors Auflistung einer .SyndicationFeed
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"))
Der folgende XML-Code zeigt, wie die Contributors Auflistung in Atom 1.0 serialisiert wird.
<contributor>
<name>Lene Aalling</name>
<uri>http://contoso/Aalling</uri>
<email>Lene.Aaling@contoso.com</email>
</contributor>
Der folgende XML-Code zeigt, wie die Contributors Auflistung in RSS 2.0 serialisiert wird.
<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>
Hinweise
Wenn sie in Atom 1.0 serialisiert wird, wird jede SyndicationPerson in der Sammlung in ein <contributor> Element geschrieben.
Wenn sie in RSS 2.0 serialisiert wird, wird jede SyndicationPerson in der Auflistung in ein <a10:contributor> Element geschrieben.