Επεξεργασία

Κοινή χρήση μέσω


SyndicationItem.TryParseContent Method

Definition

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

reader
XmlReader

The XmlReader to read from.

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