Aracılığıyla paylaş


SyndicationItemFormatter.TryParseContent Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Attempts to parse syndication item content using the specified SyndicationItem instance.

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)

Syntax

'Declaration
Protected Shared Function TryParseContent ( _
    reader As XmlReader, _
    item As SyndicationItem, _
    contentType As String, _
    version As String, _
    <OutAttribute> ByRef content As SyndicationContent _
) As Boolean
protected static bool TryParseContent(
    XmlReader reader,
    SyndicationItem item,
    string contentType,
    string version,
    out SyndicationContent content
)

Parameters

  • version
    Type: System.String
    The syndication version to use while parsing.

Return Value

Type: System.Boolean
A value that indicates whether the content was parsed successfully.

Remarks

To control how syndication content is parsed, derive your own class from SyndicationItem and override the TryParseContent(XmlReader, String, String, SyndicationContent%) method.

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.