SyndicationItem.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

プロパティ値

配信項目の ID。

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

SyndicationItem item = new SyndicationItem("Item Title", "Item Content", new Uri("http://Item/Alternate/Link"));
item.Id = "ItemID";
Dim item As New SyndicationItem("Item Title", "Item Content", New Uri("http:' Item/Alternate/Link"))
item.Id = "ItemID"

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

<id>Item ID</id>  

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

<guid isPermaLink="false">Item ID</guid>  

注釈

Atom 1.0 にシリアル化する際、このプロパティは <id> 要素に書き込まれます。 RSS 2.0 にシリアル化する際、このプロパティは <guid> 要素に書き込まれます。

適用対象