SyndicationItem.Copyright Свойство

Определение

Получает или задает сведения об авторских правах для элемента синдикации.

public:
 property System::ServiceModel::Syndication::TextSyndicationContent ^ Copyright { System::ServiceModel::Syndication::TextSyndicationContent ^ get(); void set(System::ServiceModel::Syndication::TextSyndicationContent ^ value); };
public System.ServiceModel.Syndication.TextSyndicationContent Copyright { get; set; }
member this.Copyright : System.ServiceModel.Syndication.TextSyndicationContent with get, set
Public Property Copyright As TextSyndicationContent

Значение свойства

Экземпляр TextSyndicationContent, который представляет сведения об авторском праве.

Примеры

В следующем примере кода показано, как добавлять сведения об авторском праве SyndicationItem.

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

В следующем XML-коде показано, как это свойство сериализуется в Atom 1.0.

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

В следующем XML-коде показано, как это свойство сериализуется в RSS 2.0.

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

Комментарии

При сериализации в Atom 1.0 данное свойство записывается в элемент <rights>. При сериализации в RSS 2.0 данное свойство записывается в элемент <a10:rights>.

Применяется к