SyndicationContent Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
A base class that represents syndication content.
Inheritance Hierarchy
System.Object
System.ServiceModel.Syndication.SyndicationContent
System.ServiceModel.Syndication.TextSyndicationContent
System.ServiceModel.Syndication.UrlSyndicationContent
System.ServiceModel.Syndication.XmlSyndicationContent
Namespace: System.ServiceModel.Syndication
Assembly: System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)
Syntax
'Declaration
Public MustInherit Class SyndicationContent
public abstract class SyndicationContent
The SyndicationContent type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SyndicationContent() | Initializes a new instance of the SyndicationContent class. | |
SyndicationContent(SyndicationContent) | Initializes a new instance of the SyndicationContent class with the specified SyndicationContent instance. |
Top
Properties
Name | Description | |
---|---|---|
AttributeExtensions | Gets the attribute extensions for this content. | |
Type | Gets the syndication content type. |
Top
Methods
Name | Description | |
---|---|---|
Clone | Creates a copy of the SyndicationContent instance. | |
CreateHtmlContent | Creates a new TextSyndicationContent instance with the specified HTML content. | |
CreatePlaintextContent | Creates a new TextSyndicationContent instance with the specified plain text content. | |
CreateUrlContent | Creates a new UrlSyndicationContent instance with the specified Uri and media type. | |
CreateXhtmlContent | Creates a new TextSyndicationContent instance with the specified XHTML content. | |
CreateXmlContent(Object) | Creates a new XmlSyndicationContent instance with the specified data contract object. | |
CreateXmlContent(XmlReader) | Creates XML syndication content. | |
CreateXmlContent(Object, XmlObjectSerializer) | Creates a new XmlSyndicationContent instance with the specified data contract object and data contract serializer. | |
CreateXmlContent(Object, XmlSerializer) | Creates a new XmlSyndicationContent instance with the specified object and XML serializer. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteContentsTo | Writes the contents of this SyndicationContent object to the specified XmlWriter. | |
WriteTo | Writes the contents of this object to the specified XmlWriter within the specified element and element namespace. |
Top
Remarks
This is an abstract class and cannot be instantiated directly. It is used as the base class for the following syndication content types:
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.