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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈