Table of Contents

Class XElementWrapper

Namespace
DocuWare.Services.Http.Client
Assembly
DocuWare.RestClient.dll

A wrapper for XElements.

public class XElementWrapper : IXmlSerializable
Inheritance
XElementWrapper
Implements
Inherited Members

Constructors

XElementWrapper()

Initializes a new instance of the XElementWrapper class.

public XElementWrapper()

XElementWrapper(XElement)

Initializes a new instance of the XElementWrapper class.

public XElementWrapper(XElement el)

Parameters

TypeNameDescription
XElementel

The el.

Methods

GetSchema()

This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.

public XmlSchema GetSchema()

Returns

TypeDescription
XmlSchema

An XmlSchema that describes the XML representation of the object that is produced by the WriteXml(XmlWriter) method and consumed by the ReadXml(XmlReader) method.

Exceptions

TypeCondition
NotImplementedException

ReadXml(XmlReader)

Generates an object from its XML representation.

public void ReadXml(XmlReader reader)

Parameters

TypeNameDescription
XmlReaderreader

The XmlReader stream from which the object is deserialized.

Save(Stream)

Outputs the wrapped element to the specified Stream instance.

public void Save(Stream stream)

Parameters

TypeNameDescription
Streamstream

The stream.

Save(Stream, SaveOptions)

Saves the specified stream.

public void Save(Stream stream, SaveOptions options)

Parameters

TypeNameDescription
Streamstream

The stream.

SaveOptionsoptions

The options.

Save(TextWriter)

Outputs the wrapped element to the specified TextWriter instance.

public void Save(TextWriter textWriter)

Parameters

TypeNameDescription
TextWritertextWriter

The text writer.

Save(TextWriter, SaveOptions)

Outputs the wrapped element to the specified Stream instance.

public void Save(TextWriter textWriter, SaveOptions options)

Parameters

TypeNameDescription
TextWritertextWriter

The text writer.

SaveOptionsoptions

The options.

Save(XmlWriter)

Outputs the wrapped element to the specified XmlWriter instance.

public void Save(XmlWriter xmlWriter)

Parameters

TypeNameDescription
XmlWriterxmlWriter

The XML writer.

WriteXml(XmlWriter)

Converts an object into its XML representation.

public void WriteXml(XmlWriter writer)

Parameters

TypeNameDescription
XmlWriterwriter

The XmlWriter stream to which the object is serialized.

Operators

Implicit(XElementWrapper to XElement)

Performs an implicit conversion from XElementWrapper to XElement.

public static implicit operator XElement(XElementWrapper elementWrapper)

Parameters

TypeNameDescription
XElementWrapperelementWrapper

The element wrapper.

Returns

TypeDescription
XElement

The result of the conversion.

Implicit(XElement to XElementWrapper)

Performs an implicit conversion from XElement to XElementWrapper.

public static implicit operator XElementWrapper(XElement element)

Parameters

TypeNameDescription
XElementelement

The element.

Returns

TypeDescription
XElementWrapper

The result of the conversion.