Export (0) Print
Expand All

SyndicationItem.Id Property

Gets and sets the ID of the syndication item.

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public string Id { get; set; }

Property Value

Type: System.String
The ID of the syndication item.

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.

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";

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>

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

ADD
Show:
© 2015 Microsoft