次の方法で共有


SyndicationLink.Uri プロパティ

定義

リンクされたリソースの URI を取得または設定します。

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

プロパティ値

Uri

リンクされたリソースの URI を含む Uri インスタンス。

次のコードは、配信リンクの URI を設定する方法を示しています。

次の XML は、 Uri プロパティを Atom 1.0 にシリアル化する方法を示しています。

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

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

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

注釈

Atom 1.0 にシリアル化すると、この値は <link> 要素のhref属性として書き出されます。

RSS 2.0 にシリアル化すると、この値は<a10:link>要素のhref属性として書き出されます。

適用対象