Share via


SyndicationLink.Title 속성

정의

연결된 리소스의 제목을 가져오거나 설정합니다.

public:
 property System::String ^ Title { System::String ^ get(); void set(System::String ^ value); };
public string Title { get; set; }
member this.Title : string with get, set
Public Property Title As String

속성 값

String

링크된 리소스의 제목입니다.

예제

다음 코드는 배포 링크의 제목을 설정하는 방법을 보여줍니다.

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

SyndicationLink link = new SyndicationLink(new Uri("http://server/link"), "alternate", "Link Title", "text/html", 1000);
feed.Links.Add(link);
Dim feed As SyndicationFeed = New SyndicationFeed("Feed Title", "Feed Description", New Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now)

Dim link As SyndicationLink = New SyndicationLink(New Uri("http://server/link"), "alternate", "Link Title", "text/html", 1000)
feed.Links.Add(link)

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

<link customAttribute="value" rel="alternate" type="text/html" title="Link Title" length="1000" href="http://server/link" />

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

<a10:link customAttribute="value" rel="alternate" type="text/html" title="Link Title" length="1000" href="http://server/link" />

설명

Atom 1.0으로 직렬화된 경우 이 값은 요소의 title 특성 <link> 으로 기록됩니다.

RSS 2.0으로 직렬화되면 타이틀이 요소의 title 특성 <a10:link> 으로 기록됩니다.

적용 대상