SyndicationItemFormatter.TryParseElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to parse an element extension.
Overloads
TryParseElement(XmlReader, SyndicationCategory, String) |
Attempts to parse an element extension using the specified SyndicationCategory 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:
- SyndicationItemFormatter.cs
- Source:
- SyndicationItemFormatter.cs
- Source:
- SyndicationItemFormatter.cs
Attempts to parse an element extension using the specified SyndicationCategory instance.
protected:
static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected 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 Shared Function TryParseElement (reader As XmlReader, category As SyndicationCategory, version As String) As Boolean
Parameters
- category
- SyndicationCategory
The SyndicationCategory instance to use.
- version
- String
The syndication version to use when parsing.
Returns
A value that indicates whether the element was parsed successfully.
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, SyndicationItem, String)
- Source:
- SyndicationItemFormatter.cs
- Source:
- SyndicationItemFormatter.cs
- Source:
- SyndicationItemFormatter.cs
Attempts to parse an element extension using the specified SyndicationItem instance.
protected:
static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected 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 Shared Function TryParseElement (reader As XmlReader, item As SyndicationItem, version As String) As Boolean
Parameters
- item
- SyndicationItem
The SyndicationItem instance to use.
- version
- String
The syndication version to use when parsing.
Returns
A value that indicates whether the element was parsed successfully.
Remarks
To control how element extensions are parsed, derive your own class from SyndicationItem and override the TryParseElement(XmlReader, String) method.
Applies to
TryParseElement(XmlReader, SyndicationLink, String)
- Source:
- SyndicationItemFormatter.cs
- Source:
- SyndicationItemFormatter.cs
- Source:
- SyndicationItemFormatter.cs
Attempts to parse an element extension using the specified SyndicationLink instance.
protected:
static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected 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 Shared Function TryParseElement (reader As XmlReader, link As SyndicationLink, version As String) As Boolean
Parameters
- link
- SyndicationLink
The SyndicationItem instance to use.
- version
- String
The syndication version to use when parsing.
Returns
A value that indicates whether the element was parsed successfully.
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:
- SyndicationItemFormatter.cs
- Source:
- SyndicationItemFormatter.cs
- Source:
- SyndicationItemFormatter.cs
Attempts to parse an element extension using the specified SyndicationPerson instance.
protected:
static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected 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 Shared Function TryParseElement (reader As XmlReader, person As SyndicationPerson, version As String) As Boolean
Parameters
- person
- SyndicationPerson
The SyndicationPerson instance to use.
- version
- String
The syndication version to use when parsing.
Returns
A value that indicates whether the element was parsed successfully.
Remarks
To control how element extensions are parsed, derive your own class from SyndicationPerson and override the TryParseElement(XmlReader, String) method.