SyndicationElementExtension Class

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

A class that represents a syndication element extension.

Inheritance Hierarchy

System.Object
  System.ServiceModel.Syndication.SyndicationElementExtension

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

Syntax

'Declaration
Public Class SyndicationElementExtension
public class SyndicationElementExtension

The SyndicationElementExtension type exposes the following members.

Constructors

  Name Description
Public method SyndicationElementExtension(Object) Initializes a new instance of the SyndicationElementExtension class with the specified object.
Public method SyndicationElementExtension(XmlReader) Initializes a new instance of the SyndicationElementExtension class.
Public method SyndicationElementExtension(Object, XmlObjectSerializer) Initializes a new instance of the SyndicationElementExtension class with the specified object and data contract serializer.
Public method SyndicationElementExtension(Object, XmlSerializer) Initializes a new instance of the SyndicationElementExtension class with the specified object and XML serializer.
Public method SyndicationElementExtension(String, String, Object) Initializes a new instance of the SyndicationElementExtension class with the specified outer name, outer namespace, and object.
Public method SyndicationElementExtension(String, String, Object, XmlObjectSerializer) Initializes a new instance of the SyndicationElementExtension class with the specified outer name, outer namespace, object, and data contract serializer.

Top

Properties

  Name Description
Public property OuterName Gets the outer name of the element extension.
Public property OuterNamespace Gets the outer namespace of the element extension.

Top

Methods

  Name Description
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 GetObject<TExtension>() Gets the object that represents the element extension.
Public method GetObject<TExtension>(XmlObjectSerializer) Gets the object that represents the element extension.
Public method GetObject<TExtension>(XmlSerializer) Gets the object that represents the element extension.
Public method GetReader Gets the XmlReader associated with the SyndicationElementExtension.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WriteTo Writes the current extension to the specified XmlWriter.

Top

Remarks

Both RSS and Atom support protocol extensibility with additional namespace-qualified elements. An XML element not specifically defined in the RSS or Atom specifications can be present at the feed or item level as long as the namespace of that element does not match the root namespace of the enclosing feed. Element extensions can be added to various classes including:

The syndication object model makes this extensibility easier using SyndicationElementExtension, which can be placed in a SyndicationElementExtensionCollection.

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.