SyndicationFeedFormatter.TryParseElement Method
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.
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. |
- 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
- 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) |
- 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
- 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) |
- 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
- 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 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
- 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) |
- 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
- 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) |
.NET feedback
.NET er et åben kildekode projekt. Vælg et link for at give feedback: