AtomPub10CategoriesDocumentFormatter 类
定义
一个用于在 CategoriesDocument 实例与 Atom 1.0 格式之间来回序列化的类。A class that serializes a CategoriesDocument instance to and from Atom 1.0 format.
public ref class AtomPub10CategoriesDocumentFormatter : System::ServiceModel::Syndication::CategoriesDocumentFormatter, System::Xml::Serialization::IXmlSerializable
public class AtomPub10CategoriesDocumentFormatter : System.ServiceModel.Syndication.CategoriesDocumentFormatter, System.Xml.Serialization.IXmlSerializable
type AtomPub10CategoriesDocumentFormatter = class
inherit CategoriesDocumentFormatter
interface IXmlSerializable
Public Class AtomPub10CategoriesDocumentFormatter
Inherits CategoriesDocumentFormatter
Implements IXmlSerializable
- 继承
- 实现
构造函数
| AtomPub10CategoriesDocumentFormatter() |
创建 AtomPub10CategoriesDocumentFormatter 类的新实例。Creates a new instance of the AtomPub10CategoriesDocumentFormatter class. |
| AtomPub10CategoriesDocumentFormatter(CategoriesDocument) |
使用指定的 AtomPub10CategoriesDocumentFormatter 创建 CategoriesDocument 类的新实例。Creates a new instance of the AtomPub10CategoriesDocumentFormatter class with the specified CategoriesDocument. |
| AtomPub10CategoriesDocumentFormatter(Type, Type) |
使用指定的 AtomPub10CategoriesDocumentFormatter 创建 CategoriesDocument 类的新实例。Creates a new instance of the AtomPub10CategoriesDocumentFormatter class with the specified CategoriesDocument. |
属性
| Document |
获取类别文档。Gets the categories document. (继承自 CategoriesDocumentFormatter) |
| Version |
获取格式化程序使用的联合版本。Gets the syndication version used by the formatter. |
方法
| CanRead(XmlReader) |
验证指定的 XmlReader 是否包含有效的 Atom 1.0 类别文档。Verifies whether the specified XmlReader contains a valid Atom 1.0 categories document. |
| CreateInlineCategoriesDocument() |
创建一个 InlineCategoriesDocument,它可以序列化为服务文档内的 < |
| CreateReferencedCategoriesDocument() |
创建一个 ReferencedCategoriesDocument,它可以序列化为服务文档内的 < |
| 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) |
| ReadFrom(XmlReader) |
从指定的 XmlReader 实例读取 Atom 1.0 < |
| SetDocument(CategoriesDocument) |
指定要与 CategoriesDocument 关联的 CategoriesDocumentFormatter。Specifies the CategoriesDocument to associate with the CategoriesDocumentFormatter. (继承自 CategoriesDocumentFormatter) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| WriteTo(XmlWriter) |
将与 AtomPub10CategoriesDocumentFormatter 关联的 CategoriesDocument 写入指定的 XmlWriter。Writes the CategoriesDocument associated with the AtomPub10CategoriesDocumentFormatter to the specified XmlWriter. |
显式接口实现
| IXmlSerializable.GetSchema() |
实现 GetSchema() 方法。Implements the GetSchema() method. |
| IXmlSerializable.ReadXml(XmlReader) |
实现 ReadXml(XmlReader) 方法。Implements the ReadXml(XmlReader) method. |
| IXmlSerializable.WriteXml(XmlWriter) |
实现 WriteXml(XmlWriter) 方法。Implements the WriteXml(XmlWriter) method. |