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 にシリアル化する方法を示しています。

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

Title プロパティを RSS 2.0 にシリアル化する方法を次の XML に示します。

<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> 属性として書き込まれます。

適用対象