次の方法で共有


SyndicationContent Class

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

A base class that represents syndication content.

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
Protected method SyndicationContent() Initializes a new instance of the SyndicationContent class.
Protected method SyndicationContent(SyndicationContent) Initializes a new instance of the SyndicationContent class with the specified SyndicationContent instance.

Top

Properties

  Name Description
Public property AttributeExtensions Gets the attribute extensions for this content.
Public property Type Gets the syndication content type.

Top

Methods

  Name Description
Public method Clone Creates a copy of the SyndicationContent instance.
Public methodStatic member CreateHtmlContent Creates a new TextSyndicationContent instance with the specified HTML content.
Public methodStatic member CreatePlaintextContent Creates a new TextSyndicationContent instance with the specified plain text content.
Public methodStatic member CreateUrlContent Creates a new UrlSyndicationContent instance with the specified Uri and media type.
Public methodStatic member CreateXhtmlContent Creates a new TextSyndicationContent instance with the specified XHTML content.
Public methodStatic member CreateXmlContent(Object) Creates a new XmlSyndicationContent instance with the specified data contract object.
Public methodStatic member CreateXmlContent(XmlReader) Creates XML syndication content.
Public methodStatic member CreateXmlContent(Object, XmlObjectSerializer) Creates a new XmlSyndicationContent instance with the specified data contract object and data contract serializer.
Public methodStatic member CreateXmlContent(Object, XmlSerializer) Creates a new XmlSyndicationContent instance with the specified object and XML serializer.
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 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.)
Protected method WriteContentsTo Writes the contents of this SyndicationContent object to the specified XmlWriter.
Public method 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.