SyndicationItem.Copyright Property

 

Gets and sets the copyright information for the syndication item.

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public TextSyndicationContent Copyright { get; set; }

Property Value

Type: System.ServiceModel.Syndication.TextSyndicationContent

A TextSyndicationContent instance that represents copyright information.

When serialized to Atom 1.0, this property is written to a <rights> element. When serialized to RSS 2.0, this property is written to a <a10:rights> element.

The following code shows how to add copyright information to a SyndicationItem.

SyndicationItem item = new SyndicationItem("Item Title", "Item Content", new Uri("http://Item/Alternate/Link"));
item.Copyright = new TextSyndicationContent("Copyright 2007 Contoso");

The following XML shows how this property is serialized to Atom 1.0.

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

The following XML shows how this property is serialized to RSS 2.0.

<a10:rights type="text">Copyright 2007</a10:rights>

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: