Upravit

Sdílet prostřednictvím


SyndicationItemFormatter.SetItem(SyndicationItem) Method

Definition

Associates a SyndicationItem instance with the SyndicationItemFormatter.

protected public:
 virtual void SetItem(System::ServiceModel::Syndication::SyndicationItem ^ item);
protected internal virtual void SetItem (System.ServiceModel.Syndication.SyndicationItem item);
abstract member SetItem : System.ServiceModel.Syndication.SyndicationItem -> unit
override this.SetItem : System.ServiceModel.Syndication.SyndicationItem -> unit
Protected Friend Overridable Sub SetItem (item As SyndicationItem)

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