SyndicationFeed.Copyright Property

Definition

Gets or sets copyright information for the feed.

C#
public System.ServiceModel.Syndication.TextSyndicationContent Copyright { get; set; }

Property Value

A SyndicationContent object that represents copyright information for the feed.

Examples

The following code shows how to set the copyright information for a SyndicationFeed.

C#
SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
feed.Copyright = new TextSyndicationContent("Copyright 2007");

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

XML
<rights type="text">Copyright 2007</rights>
<rights type="text">Copyright 2007</rights>  

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

XML
<copyright>Copyright 2007</copyright>

Remarks

When serialized to Atom 1.0, the Copyright is written to a <rights> element.

When serialized to RSS 2.0, the Copyright is written to a <copyright> element.

Applies to

제품 버전
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)