SyndicationItemFormatter 构造函数
定义
创建 SyndicationItemFormatter 类的新实例。Creates a new instance of the SyndicationItemFormatter class.
重载
| SyndicationItemFormatter() |
创建 SyndicationItemFormatter 类的新实例。Creates a new instance of the SyndicationItemFormatter class. |
| SyndicationItemFormatter(SyndicationItem) |
使用指定的 SyndicationItemFormatter 实例创建 SyndicationItem 类的新实例。Creates a new instance of the SyndicationItemFormatter class with the specified SyndicationItem instance. |
SyndicationItemFormatter()
创建 SyndicationItemFormatter 类的新实例。Creates a new instance of the SyndicationItemFormatter class.
protected:
SyndicationItemFormatter();
protected SyndicationItemFormatter ();
Protected Sub New ()
适用于
SyndicationItemFormatter(SyndicationItem)
使用指定的 SyndicationItemFormatter 实例创建 SyndicationItem 类的新实例。Creates a new instance of the SyndicationItemFormatter class with the specified SyndicationItem instance.
protected:
SyndicationItemFormatter(System::ServiceModel::Syndication::SyndicationItem ^ itemToWrite);
protected SyndicationItemFormatter (System.ServiceModel.Syndication.SyndicationItem itemToWrite);
new System.ServiceModel.Syndication.SyndicationItemFormatter : System.ServiceModel.Syndication.SyndicationItem -> System.ServiceModel.Syndication.SyndicationItemFormatter
Protected Sub New (itemToWrite As SyndicationItem)
参数
- itemToWrite
- SyndicationItem
要写入的 SyndicationItem。The SyndicationItem to write.
注解
SyndicationItemFormatter 必须有一个与之关联的 SyndicationItem。A SyndicationItemFormatter must have a SyndicationItem associated with it. 这样,SyndicationItemFormatter 才能将 SyndicationItem 写出到 XmlReader。The SyndicationItemFormatter can then write out the SyndicationItem to an XmlReader. 将 SyndicationItem 与 SyndicationItemFormatter 相关联的唯一方法就是使用此构造函数。The only way to associate a SyndicationItem with a SyndicationItemFormatter is by using this constructor.