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

저작권 정보를 나타내는 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으로 serialize되는 방법을 보여 있습니다.

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

다음 XML에서는 이 속성이 RSS 2.0으로 serialize되는 방법을 보여 줍니다.

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

설명

Atom 1.0으로 serialize되면 이 속성이 요소에 <rights> 기록됩니다. RSS 2.0으로 직렬화된 경우 이 속성은 요소에 <a10:rights> 기록됩니다.

적용 대상