SyndicationFeed.Id プロパティ

定義

フィードの ID を取得または設定します。

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

プロパティ値

String

フィードの ID。

Id インスタンスで SyndicationFeed プロパティを設定する方法を次のコードに示します。

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
feed.Id = "SyndicationFeedId";
Dim feed As New SyndicationFeed("Feed Title", "Feed Description", New Uri("http:'Feed/Alternate/Link"), "FeedID", DateTime.Now)
feed.Id = "SyndicationFeedId"

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

<id>FeedID</id>

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

<a10:id>FeedID</a10:id>

注釈

Atom 1.0 にシリアル化すると、要素 Id<id> 書き込まれます。

RSS 2.0 にシリアル化すると、要素 Id<a10:id> 書き込まれます。

適用対象