Bearbeiten

Freigeben über


SyndicationItem.Id Property

Definition

Gets or sets the ID of the syndication item.

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

Property Value

The ID of the syndication item.

Examples

The following code shows how to set the Id property on a SyndicationItem instance.

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"

The following XML shows how this property is serialized to Atom 1.0.

<id>Item ID</id>  

The following XML shows how this property is serialized to RSS 2.0.

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

Remarks

When serialized to Atom 1.0, this property is written to the <id> element. When serialized to RSS 2.0, this property is written to the <guid> element.

Applies to