SyndicationItemFormatter.WriteElementExtensions 方法

定義

寫入項目延伸。Write element extensions.

多載

WriteElementExtensions(XmlWriter, SyndicationCategory, String)

SyndicationCategory 執行個體中的項目延伸寫入指定新聞訂閱版本中的指定 XmlWriterWrites the element extensions in the SyndicationCategory instance to the specified XmlWriter in the specified syndication version.

WriteElementExtensions(XmlWriter, SyndicationItem, String)

SyndicationItem 執行個體中的項目延伸寫入指定新聞訂閱版本中的指定 XmlWriterWrites the element extensions in the SyndicationItem instance to the specified XmlWriter in the specified syndication version.

WriteElementExtensions(XmlWriter, SyndicationLink, String)

SyndicationLink 執行個體中的項目延伸寫入指定新聞訂閱版本中的指定 XmlWriterWrites the element extensions in the SyndicationLink instance to the specified XmlWriter in the specified syndication version.

WriteElementExtensions(XmlWriter, SyndicationPerson, String)

SyndicationPerson 執行個體中的項目延伸寫入指定新聞訂閱版本中的指定 XmlWriterWrites the element extensions in the SyndicationPerson instance to the specified XmlWriter in the specified syndication version.

WriteElementExtensions(XmlWriter, SyndicationCategory, String)

SyndicationCategory 執行個體中的項目延伸寫入指定新聞訂閱版本中的指定 XmlWriterWrites the element extensions in the SyndicationCategory instance to the specified XmlWriter in the specified syndication version.

protected public:
 void WriteElementExtensions(System::Xml::XmlWriter ^ writer, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected internal 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 Friend Sub WriteElementExtensions (writer As XmlWriter, category As SyndicationCategory, version As String)

參數

writer
XmlWriter

要寫入延伸的 XmlWriterThe XmlWriter to write the extensions to.

category
SyndicationCategory

包含要寫入項目延伸的 SyndicationCategory 執行個體。The SyndicationCategory instance that contains the element extensions to be written.

version
String

延伸已寫入其中的新聞訂閱版本。The syndication version the extensions are written in.

備註

若要控制 SyndicationCategory 寫入項目延伸的方式,請從 SyndicationCategory 衍生類別,並且覆寫 WriteElementExtensions(XmlWriter, String) 方法。To control how element extensions are written by the SyndicationCategory, derive a class from SyndicationCategory and override the WriteElementExtensions(XmlWriter, String) method.

WriteElementExtensions(XmlWriter, SyndicationItem, String)

SyndicationItem 執行個體中的項目延伸寫入指定新聞訂閱版本中的指定 XmlWriterWrites the element extensions in the SyndicationItem instance to the specified XmlWriter in the specified syndication version.

protected public:
 static void WriteElementExtensions(System::Xml::XmlWriter ^ writer, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected internal 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 Friend Shared Sub WriteElementExtensions (writer As XmlWriter, item As SyndicationItem, version As String)

參數

writer
XmlWriter

要寫入延伸的 XmlWriterThe XmlWriter to write the extensions to.

item
SyndicationItem

包含要寫入項目延伸的 SyndicationItem 執行個體。The SyndicationItem instance that contains the element extensions to be written.

version
String

延伸已寫入其中的新聞訂閱版本。The syndication version the extensions are written in.

備註

若要控制 SyndicationItem 寫入項目延伸的方式,請從 SyndicationItem 衍生類別,並且覆寫 WriteElementExtensions(XmlWriter, String) 方法。To control how element extensions are written by the SyndicationItem, derive a class from SyndicationItem and override the WriteElementExtensions(XmlWriter, String) method.

SyndicationLink 執行個體中的項目延伸寫入指定新聞訂閱版本中的指定 XmlWriterWrites the element extensions in the SyndicationLink instance to the specified XmlWriter in the specified syndication version.

protected public:
 void WriteElementExtensions(System::Xml::XmlWriter ^ writer, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected internal 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 Friend Sub WriteElementExtensions (writer As XmlWriter, link As SyndicationLink, version As String)

參數

writer
XmlWriter

要寫入延伸的 XmlWriterThe XmlWriter to write the extensions to.

link
SyndicationLink

包含要寫入項目延伸的 SyndicationLink 執行個體。The SyndicationLink instance that contains the element extensions to be written.

version
String

延伸已寫入其中的新聞訂閱版本。The syndication version the extensions are written in.

備註

若要控制 SyndicationLink 寫入項目延伸的方式,請從 SyndicationLink 衍生類別,並且覆寫 WriteElementExtensions(XmlWriter, String) 方法。To control how element extensions are written by the SyndicationLink, derive a class from SyndicationLink and override the WriteElementExtensions(XmlWriter, String) method.

WriteElementExtensions(XmlWriter, SyndicationPerson, String)

SyndicationPerson 執行個體中的項目延伸寫入指定新聞訂閱版本中的指定 XmlWriterWrites the element extensions in the SyndicationPerson instance to the specified XmlWriter in the specified syndication version.

protected public:
 void WriteElementExtensions(System::Xml::XmlWriter ^ writer, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected internal 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 Friend Sub WriteElementExtensions (writer As XmlWriter, person As SyndicationPerson, version As String)

參數

writer
XmlWriter

要寫入延伸的 XmlWriterThe XmlWriter to write the extensions to.

person
SyndicationPerson

包含要寫入項目延伸的 SyndicationPerson 執行個體。The SyndicationPerson instance that contains the element extensions to be written.

version
String

延伸已寫入其中的新聞訂閱版本。The syndication version the extensions are written in.

備註

若要控制 SyndicationPerson 寫入項目延伸的方式,請從 SyndicationPerson 衍生類別,並且覆寫 WriteElementExtensions(XmlWriter, String) 方法。To control how element extensions are written by the SyndicationPerson, derive a class from SyndicationPerson and override the WriteElementExtensions(XmlWriter, String) method.

適用於