SyndicationFeedFormatter.TryParseElement Method

Definition

Attempts to parse an element extension.

Overloads

TryParseElement(XmlReader, SyndicationCategory, String)

Attempts to parse an element extension using the specified SyndicationCategory instance.

TryParseElement(XmlReader, SyndicationFeed, String)

Attempts to parse an element extension using the specified SyndicationFeed instance.

TryParseElement(XmlReader, SyndicationItem, String)

Attempts to parse an element extension using the specified SyndicationItem instance.

TryParseElement(XmlReader, SyndicationLink, String)

Attempts to parse an element extension using the specified SyndicationLink instance.

TryParseElement(XmlReader, SyndicationPerson, String)

Attempts to parse an element extension using the specified SyndicationPerson instance.

TryParseElement(XmlReader, SyndicationCategory, String)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an element extension using the specified SyndicationCategory instance.

protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationCategory category, string version);

Parameters

reader
XmlReader

The XmlReader to read from.

category
SyndicationCategory

The SyndicationCategory instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the element was parsed successfully; otherwise false.

Remarks

To control how element extensions are parsed, derive your own class from SyndicationCategory and override the TryParseElement(XmlReader, String) method.

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 8 (package-provided), 9 (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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

TryParseElement(XmlReader, SyndicationFeed, String)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an element extension using the specified SyndicationFeed instance.

protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationFeed feed, string version);

Parameters

reader
XmlReader

The XmlReader to read from.

feed
SyndicationFeed

The SyndicationFeed instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the element was parsed successfully; otherwise false.

Remarks

To control how element extensions are parsed, derive your own class from SyndicationFeed and override the TryParseElement(XmlReader, String) method.

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 8 (package-provided), 9 (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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

TryParseElement(XmlReader, SyndicationItem, String)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an element extension using the specified SyndicationItem instance.

protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationItem item, string version);

Parameters

reader
XmlReader

The XmlReader to read from.

item
SyndicationItem

The SyndicationItem instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the element was parsed successfully; otherwise false.

Remarks

To control how element extensions are parsed, derive your own class from SyndicationItem and override the TryParseElement(XmlReader, String) method.

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 8 (package-provided), 9 (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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an element extension using the specified SyndicationLink instance.

protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationLink link, string version);

Parameters

reader
XmlReader

The XmlReader to read from.

link
SyndicationLink

The SyndicationItem instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the element was parsed successfully; otherwise false.

Remarks

To control how element extensions are parsed, derive your own class from SyndicationLink and override the TryParseElement(XmlReader, String) method.

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 8 (package-provided), 9 (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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

TryParseElement(XmlReader, SyndicationPerson, String)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an element extension using the specified SyndicationPerson instance.

protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationPerson person, string version);

Parameters

reader
XmlReader

The XmlReader to read from.

person
SyndicationPerson

The SyndicationPerson instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the element was parsed successfully; otherwise false.

Remarks

To control how element extensions are parsed, derive your own class from SyndicationPerson and override the TryParseElement(XmlReader, String) method.

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 8 (package-provided), 9 (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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)