SyndicationItem.Id Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour