SyndicationItemFormatter.SetItem(SyndicationItem) 方法

定义

SyndicationItem 实例与 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)

参数

注解

此方法是受保护的,无法从用户代码中进行调用。 若要将 SyndicationItem 实例与 SyndicationItemFormatter 相关联,可以创建新 SyndicationItemFormatter 实例,并将 SyndicationItem 实例传递给构造函数,或者通过调用 SyndicationItemSyndicationItemFormatter 实例加载到 ReadFrom(XmlReader)

适用于