SyndicationItem.TryParseContent 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 content.
protected public:
virtual bool TryParseContent(System::Xml::XmlReader ^ reader, System::String ^ contentType, System::String ^ version, [Runtime::InteropServices::Out] System::ServiceModel::Syndication::SyndicationContent ^ % content);
protected internal virtual bool TryParseContent (System.Xml.XmlReader reader, string contentType, string version, out System.ServiceModel.Syndication.SyndicationContent content);
abstract member TryParseContent : System.Xml.XmlReader * string * string * SyndicationContent -> bool
override this.TryParseContent : System.Xml.XmlReader * string * string * SyndicationContent -> bool
Protected Friend Overridable Function TryParseContent (reader As XmlReader, contentType As String, version As String, ByRef content As SyndicationContent) As Boolean
Parameters
- contentType
- String
The content type of the content.
- version
- String
The syndication version to use while parsing.
- content
- SyndicationContent
The SyndicationContent instance to load the parsed content into.
Returns
A value that specifies whether the content was parsed successfully.
Remarks
This method is an extension point that allows you to handle the deserialization of a custom content. To do this, you must derive a class from SyndicationItem and override this method. This method is called for all unrecognized content.
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre