อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


SyndicationItemFormatter.SetItem(SyndicationItem) Method

Definition

Associates a SyndicationItem instance with the SyndicationItemFormatter.

C#
protected internal virtual void SetItem(System.ServiceModel.Syndication.SyndicationItem item);

Parameters

item
SyndicationItem

The SyndicationItem to associate with the SyndicationItemFormatter.

Remarks

This method is protected and cannot be called from user code. To associate a SyndicationItem instance with a SyndicationItemFormatter, either create a new SyndicationItemFormatter instance and pass the constructor a SyndicationItem instance or load a SyndicationItem instance into the SyndicationItemFormatter by calling ReadFrom(XmlReader).

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)