SyndicationContent 类
定义
一个表示联合内容的基类。A base class that represents syndication content.
public ref class SyndicationContent abstract
public abstract class SyndicationContent
type SyndicationContent = class
Public MustInherit Class SyndicationContent
- 继承
-
SyndicationContent
- 派生
注解
此类为抽象类,不能直接实例化。This is an abstract class and cannot be instantiated directly. 您可以将它用作下列联合内容类型的基类:It is used as the base class for the following syndication content types:
构造函数
| SyndicationContent() |
初始化 SyndicationContent 类的新实例。Initializes a new instance of the SyndicationContent class. |
| SyndicationContent(SyndicationContent) |
使用指定的 SyndicationContent 实例初始化 SyndicationContent 类的新实例。Initializes a new instance of the SyndicationContent class with the specified SyndicationContent instance. |
属性
| AttributeExtensions |
获取此内容的属性扩展。Gets the attribute extensions for this content. |
| Type |
获取联合内容类型。Gets the syndication content type. |
方法
| Clone() |
创建 SyndicationContent 实例的副本。Creates a copy of the SyndicationContent instance. |
| CreateHtmlContent(String) |
使用指定的 HTML 内容创建新的 TextSyndicationContent 实例。Creates a new TextSyndicationContent instance with the specified HTML content. |
| CreatePlaintextContent(String) |
使用指定的纯文本内容创建新的 TextSyndicationContent 实例。Creates a new TextSyndicationContent instance with the specified plain text content. |
| CreateUrlContent(Uri, String) |
使用指定的 UrlSyndicationContent 和媒体类型创建新的 Uri 实例。Creates a new UrlSyndicationContent instance with the specified Uri and media type. |
| CreateXhtmlContent(String) |
使用指定的 XHTML 内容创建新的 TextSyndicationContent 实例。Creates a new TextSyndicationContent instance with the specified XHTML content. |
| CreateXmlContent(Object) |
使用指定的数据协定对象创建新的 XmlSyndicationContent 实例。Creates a new XmlSyndicationContent instance with the specified data contract object. |
| CreateXmlContent(Object, XmlObjectSerializer) |
使用指定的数据协定对象和数据协定序列化程序创建新的 XmlSyndicationContent 实例。Creates a new XmlSyndicationContent instance with the specified data contract object and data contract serializer. |
| CreateXmlContent(Object, XmlSerializer) |
使用指定的对象和 XML 序列化程序创建新的 XmlSyndicationContent 实例。Creates a new XmlSyndicationContent instance with the specified object and XML serializer. |
| CreateXmlContent(XmlReader) |
创建 XML 联合内容。Creates XML syndication content. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| WriteContentsTo(XmlWriter) |
将此 SyndicationContent 对象的内容写入指定的 XmlWriter。Writes the contents of this SyndicationContent object to the specified XmlWriter. |
| WriteTo(XmlWriter, String, String) |
在指定的元素和元素命名空间中,将此对象的内容写入指定的 XmlWriter。Writes the contents of this object to the specified XmlWriter within the specified element and element namespace. |