SyndicationItemFormatter.SetItem(SyndicationItem) 方法

定義

SyndicationItem 執行個體與 SyndicationItemFormatter 產生關聯。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)

參數

備註

使用者無法透過程式碼來呼叫這個被保護的方法。This method is protected and cannot be called from user code. 若要使 SyndicationItem 執行個體與 SyndicationItemFormatterSyndicationItemFormatter產生關聯,請建立新的 SyndicationItem 執行個體並且將 SyndicationItemSyndicationItemFormatter執行個體傳給建構函式,或是呼叫 ReadFrom(XmlReader),將 {8} 執行個體載入 {9}。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).

適用於