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
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für