Editar

Compartilhar via


CategoriesDocumentFormatter Class

Definition

An abstract class used as a base class for other formatters, (for example, AtomPub10CategoriesDocumentFormatter).

public ref class CategoriesDocumentFormatter abstract
[System.Runtime.Serialization.DataContract]
public abstract class CategoriesDocumentFormatter
[<System.Runtime.Serialization.DataContract>]
type CategoriesDocumentFormatter = class
Public MustInherit Class CategoriesDocumentFormatter
Inheritance
CategoriesDocumentFormatter
Derived
Attributes

Remarks

This class is abstract and cannot be instantiated directly.

Constructors

CategoriesDocumentFormatter()

Creates a new instance of the CategoriesDocumentFormatter class.

CategoriesDocumentFormatter(CategoriesDocument)

Creates a new instance of the CategoriesDocumentFormatter class with the specified CategoriesDocument.

Properties

Document

Gets the categories document.

Version

Gets the syndication version used by the formatter.

Methods

CanRead(XmlReader)

Verifies whether the specified XmlReader contains a valid Atom 1.0 categories document.

CreateInlineCategoriesDocument()

Creates a InlineCategoriesDocument that can be serialized into a <atom:categories> element within a service document and contains the set of categories within the element.

CreateReferencedCategoriesDocument()

Creates a ReferencedCategoriesDocument that can be serialized into a <atom:categories> element within a service document and contains a URI reference to the set of categories within the element.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(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)
ReadFrom(XmlReader)

Reads an Atom 1.0 <atom:categories> element from the specified XmlReader instance.

SetDocument(CategoriesDocument)

Specifies the CategoriesDocument to associate with the CategoriesDocumentFormatter.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteTo(XmlWriter)

Writes the CategoriesDocument associated with the CategoriesDocumentFormatter to the specified XmlWriter.

Applies to