SyndicationItem.TryParseContent Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Attempts to parse content.
Namespace: System.ServiceModel.Syndication
Assembly: System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)
Syntax
'Declaration
Protected Friend Overridable Function TryParseContent ( _
reader As XmlReader, _
contentType As String, _
version As String, _
<OutAttribute> ByRef content As SyndicationContent _
) As Boolean
protected internal virtual bool TryParseContent(
XmlReader reader,
string contentType,
string version,
out SyndicationContent content
)
Parameters
- reader
Type: System.Xml.XmlReader
The XmlReader to read from.
- contentType
Type: System.String
The content type of the content.
- version
Type: System.String
The syndication version to use while parsing.
- content
Type: System.ServiceModel.Syndication.SyndicationContent%
The SyndicationContent instance to load the parsed content into.
Return Value
Type: System.Boolean
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.