Partager via


SyndicationItem.Id Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets and sets the ID of the syndication item.

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

Syntax

'Declaration
Public Property Id As String
public string Id { get; set; }

Property Value

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

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.

Examples

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

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>

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.