ServiceDocument ServiceDocument ServiceDocument ServiceDocument Class

Definition

Represents a service document.

public ref class ServiceDocument
public class ServiceDocument
type ServiceDocument = class
Public Class ServiceDocument
Inheritance
ServiceDocumentServiceDocumentServiceDocumentServiceDocument

Remarks

A service document is a document retrieved from a service that indicates the capabilities and locations of the available collections. A service document may contain one or more workspaces. Each workspace may contain one or more collections.

Constructors

ServiceDocument() ServiceDocument() ServiceDocument() ServiceDocument()

Creates a new instance of the ServiceDocument class.

ServiceDocument(IEnumerable<Workspace>) ServiceDocument(IEnumerable<Workspace>) ServiceDocument(IEnumerable<Workspace>) ServiceDocument(IEnumerable<Workspace>)

Creates a new instance of the ServiceDocument class, initializing it with the specified collection of Workspace instances.

Properties

AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions

Gets a collection of attribute extensions.

BaseUri BaseUri BaseUri BaseUri

Gets or sets the base URI for the ServiceDocument instance.

ElementExtensions ElementExtensions ElementExtensions ElementExtensions

Gets the element extensions for the service document.

Language Language Language Language

Gets or sets the language of the service document.

Workspaces Workspaces Workspaces Workspaces

Gets a collection of workspaces contained within the service document.

Methods

CreateWorkspace() CreateWorkspace() CreateWorkspace() CreateWorkspace()

Creates a new Workspace instance.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetFormatter() GetFormatter() GetFormatter() GetFormatter()

Gets a AtomPub10ServiceDocumentFormatter instance.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Load(XmlReader) Load(XmlReader) Load(XmlReader) Load(XmlReader)

Loads a service document from the specified XmlReader into a ServiceDocument instance.

Load<TServiceDocument>(XmlReader) Load<TServiceDocument>(XmlReader) Load<TServiceDocument>(XmlReader) Load<TServiceDocument>(XmlReader)

Loads a service document from the specified XmlReader into a ServiceDocument derived instance.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Save(XmlWriter) Save(XmlWriter) Save(XmlWriter) Save(XmlWriter)

Saves the ServiceDocument instance to the specified XmlReader.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryParseAttribute(String, String, String, String) TryParseAttribute(String, String, String, String) TryParseAttribute(String, String, String, String) TryParseAttribute(String, String, String, String)

Attempts to parse an attribute extension.

TryParseElement(XmlReader, String) TryParseElement(XmlReader, String) TryParseElement(XmlReader, String) TryParseElement(XmlReader, String)

Attempts to parse an element extension.

WriteAttributeExtensions(XmlWriter, String) WriteAttributeExtensions(XmlWriter, String) WriteAttributeExtensions(XmlWriter, String) WriteAttributeExtensions(XmlWriter, String)

Writes the attribute extensions to the specified XmlWriter using the specified syndication version.

WriteElementExtensions(XmlWriter, String) WriteElementExtensions(XmlWriter, String) WriteElementExtensions(XmlWriter, String) WriteElementExtensions(XmlWriter, String)

Writes the element extensions to the specified XmlWriter using the specified syndication version.

Applies to