SyndicationItemFormatter.WriteElementExtensions 方法

定义

写入元素扩展。

重载

WriteElementExtensions(XmlWriter, SyndicationCategory, String)

使用指定的联合版本将 SyndicationCategory 实例中的元素扩展写入指定的 XmlWriter

WriteElementExtensions(XmlWriter, SyndicationItem, String)

使用指定的联合版本将 SyndicationItem 实例中的元素扩展写入指定的 XmlWriter

WriteElementExtensions(XmlWriter, SyndicationLink, String)

使用指定的联合版本将 SyndicationLink 实例中的元素扩展写入指定的 XmlWriter

WriteElementExtensions(XmlWriter, SyndicationPerson, String)

使用指定的联合版本将 SyndicationPerson 实例中的元素扩展写入指定的 XmlWriter

WriteElementExtensions(XmlWriter, SyndicationCategory, String)

Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs

使用指定的联合版本将 SyndicationCategory 实例中的元素扩展写入指定的 XmlWriter

protected:
 void WriteElementExtensions(System::Xml::XmlWriter ^ writer, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected void WriteElementExtensions (System.Xml.XmlWriter writer, System.ServiceModel.Syndication.SyndicationCategory category, string version);
member this.WriteElementExtensions : System.Xml.XmlWriter * System.ServiceModel.Syndication.SyndicationCategory * string -> unit
Protected Sub WriteElementExtensions (writer As XmlWriter, category As SyndicationCategory, version As String)

参数

writer
XmlWriter

要向其中写入扩展的 XmlWriter

category
SyndicationCategory

包含要写入的元素扩展的 SyndicationCategory 实例。

version
String

要在写入扩展时使用的联合版本。

注解

若要控制 SyndicationCategory 写入元素扩展的方式,可以从 SyndicationCategory 中派生一个类,并重写 WriteElementExtensions(XmlWriter, String) 方法。

适用于

WriteElementExtensions(XmlWriter, SyndicationItem, String)

Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs

使用指定的联合版本将 SyndicationItem 实例中的元素扩展写入指定的 XmlWriter

protected:
 static void WriteElementExtensions(System::Xml::XmlWriter ^ writer, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected static void WriteElementExtensions (System.Xml.XmlWriter writer, System.ServiceModel.Syndication.SyndicationItem item, string version);
static member WriteElementExtensions : System.Xml.XmlWriter * System.ServiceModel.Syndication.SyndicationItem * string -> unit
Protected Shared Sub WriteElementExtensions (writer As XmlWriter, item As SyndicationItem, version As String)

参数

writer
XmlWriter

要向其中写入扩展的 XmlWriter

item
SyndicationItem

包含要写入的元素扩展的 SyndicationItem 实例。

version
String

要在写入扩展时使用的联合版本。

注解

若要控制 SyndicationItem 写入元素扩展的方式,可以从 SyndicationItem 中派生一个类,并重写 WriteElementExtensions(XmlWriter, String) 方法。

适用于

Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs

使用指定的联合版本将 SyndicationLink 实例中的元素扩展写入指定的 XmlWriter

protected:
 void WriteElementExtensions(System::Xml::XmlWriter ^ writer, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected void WriteElementExtensions (System.Xml.XmlWriter writer, System.ServiceModel.Syndication.SyndicationLink link, string version);
member this.WriteElementExtensions : System.Xml.XmlWriter * System.ServiceModel.Syndication.SyndicationLink * string -> unit
Protected Sub WriteElementExtensions (writer As XmlWriter, link As SyndicationLink, version As String)

参数

writer
XmlWriter

要向其中写入扩展的 XmlWriter

link
SyndicationLink

包含要写入的元素扩展的 SyndicationLink 实例。

version
String

要在写入扩展时使用的联合版本。

注解

若要控制 SyndicationLink 写入元素扩展的方式,可以从 SyndicationLink 中派生一个类,并重写 WriteElementExtensions(XmlWriter, String) 方法。

适用于

WriteElementExtensions(XmlWriter, SyndicationPerson, String)

Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs

使用指定的联合版本将 SyndicationPerson 实例中的元素扩展写入指定的 XmlWriter

protected:
 void WriteElementExtensions(System::Xml::XmlWriter ^ writer, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected void WriteElementExtensions (System.Xml.XmlWriter writer, System.ServiceModel.Syndication.SyndicationPerson person, string version);
member this.WriteElementExtensions : System.Xml.XmlWriter * System.ServiceModel.Syndication.SyndicationPerson * string -> unit
Protected Sub WriteElementExtensions (writer As XmlWriter, person As SyndicationPerson, version As String)

参数

writer
XmlWriter

要向其中写入扩展的 XmlWriter

person
SyndicationPerson

包含要写入的元素扩展的 SyndicationPerson 实例。

version
String

要在写入扩展时使用的联合版本。

注解

若要控制 SyndicationPerson 写入元素扩展的方式,可以从 SyndicationPerson 中派生一个类,并重写 WriteElementExtensions(XmlWriter, String) 方法。

适用于