SyndicationItemFormatter Class

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

An abstract class used as a base class for other formatters, (for example, Atom10ItemFormatter).

Inheritance Hierarchy

System.Object
  System.ServiceModel.Syndication.SyndicationItemFormatter
    System.ServiceModel.Syndication.Atom10ItemFormatter
    System.ServiceModel.Syndication.Rss20ItemFormatter

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

Syntax

'Declaration
<DataContractAttribute> _
Public MustInherit Class SyndicationItemFormatter
[DataContractAttribute]
public abstract class SyndicationItemFormatter

The SyndicationItemFormatter type exposes the following members.

Constructors

  Name Description
Protected method SyndicationItemFormatter() Creates a new instance of the SyndicationItemFormatter class.
Protected method SyndicationItemFormatter(SyndicationItem) Creates a new instance of the SyndicationItemFormatter class with the specified SyndicationItem instance.

Top

Properties

  Name Description
Public property Item Gets the SyndicationItem associated with the formatter.
Public property Version Gets the syndication version of the formatter.

Top

Methods

  Name Description
Public method CanRead Verifies whether the specified XmlReader contains a valid syndication item.
Protected methodStatic member CreateCategory Creates a new instance of the SyndicationCategory class using the specified SyndicationItem instance.
Protected method CreateItemInstance Creates a new instance of the SyndicationItem class.
Protected methodStatic member CreateLink Creates a new instance of the SyndicationLink class.
Protected methodStatic member CreatePerson Creates a new SyndicationPerson instance with the specified SyndicationItem instance.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodStatic member LoadElementExtensions(XmlReader, SyndicationCategory, Int32) Loads element extensions into the specified SyndicationCategory using the specified XmlReader and the maximum extension size.
Protected methodStatic member LoadElementExtensions(XmlReader, SyndicationItem, Int32) Loads element extensions into the specified SyndicationItem using the specified XmlReader and the maximum extension size.
Protected methodStatic member LoadElementExtensions(XmlReader, SyndicationLink, Int32) Loads element extensions into the specified SyndicationLink using the specified XmlReader and the maximum extension size.
Protected methodStatic member LoadElementExtensions(XmlReader, SyndicationPerson, Int32) Loads element extensions into the specified SyndicationPerson using the specified XmlReader and the maximum extension size.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReadFrom Reads in a SyndicationItem from the specified XmlReader.
Protected method SetItem Associates a SyndicationItem instance with the SyndicationItemFormatter.
Public method ToString Gets a string representation of the SyndicationItemFormatter instance. (Overrides Object.ToString().)
Protected methodStatic member TryParseAttribute(String, String, String, SyndicationCategory, String) Attempts to parse an attribute extension using the specified SyndicationCategory instance.
Protected methodStatic member TryParseAttribute(String, String, String, SyndicationItem, String) Attempts to parse an attribute extension using the specified SyndicationItem instance.
Protected methodStatic member TryParseAttribute(String, String, String, SyndicationLink, String) Attempts to parse an attribute extension using the specified SyndicationLink instance.
Protected methodStatic member TryParseAttribute(String, String, String, SyndicationPerson, String) Attempts to parse an attribute extension using the specified SyndicationPerson instance.
Protected methodStatic member TryParseContent Attempts to parse syndication item content using the specified SyndicationItem instance.
Protected methodStatic member TryParseElement(XmlReader, SyndicationCategory, String) Attempts to parse an element extension using the specified SyndicationCategory instance.
Protected methodStatic member TryParseElement(XmlReader, SyndicationItem, String) Attempts to parse an element extension using the specified SyndicationItem instance.
Protected methodStatic member TryParseElement(XmlReader, SyndicationLink, String) Attempts to parse an element extension using the specified SyndicationLink instance.
Protected methodStatic member TryParseElement(XmlReader, SyndicationPerson, String) Attempts to parse an element extension using the specified SyndicationPerson instance.
Protected methodStatic member WriteAttributeExtensions(XmlWriter, SyndicationCategory, String) Writes the attribute extensions in the SyndicationCategory instance to the specified XmlWriter in the specified syndication version.
Protected methodStatic member WriteAttributeExtensions(XmlWriter, SyndicationItem, String) Writes the attribute extensions in the SyndicationItem instance to the specified XmlWriter in the specified syndication version.
Protected methodStatic member WriteAttributeExtensions(XmlWriter, SyndicationLink, String) Writes the attribute extensions in the SyndicationLink instance to the specified XmlWriter in the specified syndication version.
Protected methodStatic member WriteAttributeExtensions(XmlWriter, SyndicationPerson, String) Writes the attribute extensions in the SyndicationPerson instance to the specified XmlWriter in the specified syndication version.
Protected method WriteElementExtensions(XmlWriter, SyndicationCategory, String) Writes the element extensions in the SyndicationCategory instance to the specified XmlWriter in the specified syndication version.
Protected methodStatic member WriteElementExtensions(XmlWriter, SyndicationItem, String) Writes the element extensions in the SyndicationItem instance to the specified XmlWriter in the specified syndication version.
Protected method WriteElementExtensions(XmlWriter, SyndicationLink, String) Writes the element extensions in the SyndicationLink instance to the specified XmlWriter in the specified syndication version.
Protected method WriteElementExtensions(XmlWriter, SyndicationPerson, String) Writes the element extensions in the SyndicationPerson instance to the specified XmlWriter in the specified syndication version.
Public method WriteTo Writes the SyndicationItem to the specified XmlWriter instance.

Top

Remarks

This class is abstract and cannot be instantiated directly.

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.