Aracılığıyla paylaş


SyndicationItem.Copyright Özellik

Tanım

Dağıtım öğesinin telif hakkı bilgilerini alır veya ayarlar.

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

Özellik Değeri

TextSyndicationContent Telif hakkı bilgilerini temsil eden bir örnek.

Örnekler

Aşağıdaki kod, bir SyndicationItemöğesine telif hakkı bilgilerinin nasıl ekleneceğini gösterir.

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")

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

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

Aşağıdaki XML, bu özelliğin RSS 2.0'a nasıl seri hale getirileceğini gösterir.

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

Açıklamalar

Atom 1.0'a seri hale getirildiğinde, bu özellik bir <rights> öğeye yazılır. RSS 2.0'a seri hale getirildiğinde, bu özellik bir <a10:rights> öğeye yazılır.

Şunlara uygulanır