อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


SyndicationItemFormatter.LoadElementExtensions Method

Definition

Loads element extensions.

Overloads

LoadElementExtensions(XmlReader, SyndicationPerson, Int32)

Loads element extensions into the specified SyndicationPerson using the specified XmlReader and maximum extension size.

LoadElementExtensions(XmlReader, SyndicationLink, Int32)

Loads element extensions into the specified SyndicationLink using the specified XmlReader and maximum extension size.

LoadElementExtensions(XmlReader, SyndicationCategory, Int32)

Loads element extensions into the specified SyndicationCategory using the specified XmlReader and maximum extension size.

LoadElementExtensions(XmlReader, SyndicationItem, Int32)

Loads element extensions into the specified SyndicationItem using the specified XmlReader and maximum extension size.

LoadElementExtensions(XmlReader, SyndicationPerson, Int32)

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

Loads element extensions into the specified SyndicationPerson using the specified XmlReader and maximum extension size.

C#
protected static void LoadElementExtensions(System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationPerson person, int maxExtensionSize);

Parameters

reader
XmlReader

The XmlReader to read from.

person
SyndicationPerson

The SyndicationPerson to load the element extensions into.

maxExtensionSize
Int32

The maximum allowable size for an element extension (in bytes).

Exceptions

Invalid XML encountered during read.

Remarks

The RSS 2.0 and Atom 1.0 specifications allow you to add custom element extensions to a syndication feed. This method allows you to read in these element extensions from an XmlReader.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs
Source:
SyndicationItemFormatter.cs

Loads element extensions into the specified SyndicationLink using the specified XmlReader and maximum extension size.

C#
protected static void LoadElementExtensions(System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationLink link, int maxExtensionSize);

Parameters

reader
XmlReader

The XmlReader to read from.

link
SyndicationLink

The SyndicationLink to load the element extensions into.

maxExtensionSize
Int32

The maximum allowable size for an element extension (in bytes).

Remarks

The RSS 2.0 and Atom 1.0 specifications allow you to add custom element extensions to a syndication feed. This method allows you to read in these element extensions from an XmlReader.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

LoadElementExtensions(XmlReader, SyndicationCategory, Int32)

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

Loads element extensions into the specified SyndicationCategory using the specified XmlReader and maximum extension size.

C#
protected static void LoadElementExtensions(System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationCategory category, int maxExtensionSize);

Parameters

reader
XmlReader

The XmlReader to read from.

category
SyndicationCategory

The SyndicationCategory to load the element extensions into.

maxExtensionSize
Int32

The maximum allowable size for an element extension (in bytes).

Remarks

The RSS 2.0 and Atom 1.0 specifications allow you to add custom element extensions to a syndication feed. This method allows you to read in these element extensions from an XmlReader.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

LoadElementExtensions(XmlReader, SyndicationItem, Int32)

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

Loads element extensions into the specified SyndicationItem using the specified XmlReader and maximum extension size.

C#
protected static void LoadElementExtensions(System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationItem item, int maxExtensionSize);

Parameters

reader
XmlReader

The XmlReader to read from.

item
SyndicationItem

The SyndicationItem to load the element extensions into.

maxExtensionSize
Int32

The maximum allowable size for an element extension (in bytes).

Remarks

The RSS 2.0 and Atom 1.0 specifications allow you to add custom element extensions to a syndication feed. This method allows you to read in these element extensions from an XmlReader.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)