This topic has not yet been rated - Rate this topic

ServiceDocumentFormatter Class

An abstract class used as a base class for other formatters, such as AtomPub10ServiceDocumentFormatter.

System.Object
  System.ServiceModel.Syndication.ServiceDocumentFormatter
    System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
[DataContractAttribute]
public abstract class ServiceDocumentFormatter

The ServiceDocumentFormatter type exposes the following members.

  Name Description
Protected method ServiceDocumentFormatter() Creates a new instance of the ServiceDocumentFormatter class.
Protected method ServiceDocumentFormatter(ServiceDocument) Creates a new instance of the ServiceDocumentFormatter class.
Top
  Name Description
Public property Document Gets the ServiceDocument associated with the formatter.
Public property Version Gets the version of the formatter.
Top
  Name Description
Public method CanRead Verifies whether the specified XmlReader contains a valid service document.
Protected method Static member CreateCategory Creates a new instance of the SyndicationCategory class.
Protected method Static member CreateCollection Creates a new ResourceCollectionInfo instance.
Protected method CreateDocumentInstance Creates a new ServiceDocument instance.
Protected method Static member CreateInlineCategories Creates a new InlineCategoriesDocument.
Protected method Static member CreateReferencedCategories Creates a new ReferencedCategoriesDocument.
Protected method Static member CreateWorkspace Creates a new Workspace
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 it 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 Static member LoadElementExtensions(XmlReader, CategoriesDocument, Int32) Loads element extensions.
Protected method Static member LoadElementExtensions(XmlReader, ResourceCollectionInfo, Int32) Loads element extensions.
Protected method Static member LoadElementExtensions(XmlReader, ServiceDocument, Int32) Loads element extensions.
Protected method Static member LoadElementExtensions(XmlReader, Workspace, Int32) Loads element extensions.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReadFrom Reads a service document from the specified XmlReader.
Protected method SetDocument Sets the ServiceDocument to write.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method Static member TryParseAttribute(String, String, String, CategoriesDocument, String) Attempts to parse an attribute extension.
Protected method Static member TryParseAttribute(String, String, String, ResourceCollectionInfo, String) Attempts to parse an attribute extension.
Protected method Static member TryParseAttribute(String, String, String, ServiceDocument, String) Attempts to parse an attribute extensions.
Protected method Static member TryParseAttribute(String, String, String, Workspace, String) Attempts to parse an attribute extension
Protected method Static member TryParseElement(XmlReader, CategoriesDocument, String) Attempts to parse an element extension.
Protected method Static member TryParseElement(XmlReader, ResourceCollectionInfo, String) Attempts to parse an element extension.
Protected method Static member TryParseElement(XmlReader, ServiceDocument, String) Attempts to parse an element extension.
Protected method Static member TryParseElement(XmlReader, Workspace, String) Attempts to parse an element extension.
Protected method Static member WriteAttributeExtensions(XmlWriter, CategoriesDocument, String) Writes attribute extensions.
Protected method Static member WriteAttributeExtensions(XmlWriter, ResourceCollectionInfo, String) Writes attribute extensions.
Protected method Static member WriteAttributeExtensions(XmlWriter, ServiceDocument, String) Writes attribute extensions.
Protected method Static member WriteAttributeExtensions(XmlWriter, Workspace, String) Writes attribute extensions.
Protected method Static member WriteElementExtensions(XmlWriter, CategoriesDocument, String) Writes element extensions.
Protected method Static member WriteElementExtensions(XmlWriter, ResourceCollectionInfo, String) Writes element extensions.
Protected method Static member WriteElementExtensions(XmlWriter, ServiceDocument, String) Writes element extensions.
Protected method Static member WriteElementExtensions(XmlWriter, Workspace, String) Writes element extensions.
Public method WriteTo Writes a service document to the specified XmlWriter.
Top

This class is abstract and cannot be instantiated directly.

.NET Framework

Supported in: 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ