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 public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationCategory category, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationCategory * string -> bool
Protected Friend Shared Function TryParseElement (reader As XmlReader, category As SyndicationCategory, version As String) As Boolean

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

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 public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationFeed ^ feed, System::String ^ version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationFeed feed, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationFeed * string -> bool
Protected Friend Shared Function TryParseElement (reader As XmlReader, feed As SyndicationFeed, version As String) As Boolean

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

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 public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationItem item, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationItem * string -> bool
Protected Friend Shared Function TryParseElement (reader As XmlReader, item As SyndicationItem, version As String) As Boolean

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

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

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

protected public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationLink link, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationLink * string -> bool
Protected Friend Shared Function TryParseElement (reader As XmlReader, link As SyndicationLink, version As String) As Boolean

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

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 public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationPerson person, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationPerson * string -> bool
Protected Friend Shared Function TryParseElement (reader As XmlReader, person As SyndicationPerson, version As String) As Boolean

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