Class XElementWrapper
A wrapper for XElements.
Inheritance
Implements
Inherited Members
Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient.dll
Syntax
public class XElementWrapper : IXmlSerializable
  Constructors
XElementWrapper()
Initializes a new instance of the XElementWrapper class.
Declaration
public XElementWrapper()
  XElementWrapper(XElement)
Initializes a new instance of the XElementWrapper class.
Declaration
public XElementWrapper(XElement el)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.Linq.XElement | el | 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 System.Xml.Serialization.XmlSchemaProviderAttribute to the class.
Declaration
public XmlSchema GetSchema()
  Returns
| Type | Description | 
|---|---|
| System.Xml.Schema.XmlSchema | An System.Xml.Schema.XmlSchema that describes the XML representation of the object that is produced by the System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter) method and consumed by the System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader) method.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.NotImplementedException | 
ReadXml(XmlReader)
Generates an object from its XML representation.
Declaration
public void ReadXml(XmlReader reader)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.XmlReader | reader | The System.Xml.XmlReader stream from which the object is deserialized.  | 
      
Save(Stream)
Outputs the wrapped element to the specified System.IO.Stream instance.
Declaration
public void Save(Stream stream)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | stream | The stream.  | 
      
Save(Stream, SaveOptions)
Saves the specified stream.
Declaration
public void Save(Stream stream, SaveOptions options)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | stream | The stream.  | 
      
| System.Xml.Linq.SaveOptions | options | The options.  | 
      
Save(TextWriter)
Outputs the wrapped element to the specified System.IO.TextWriter instance.
Declaration
public void Save(TextWriter textWriter)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.TextWriter | textWriter | The text writer.  | 
      
Save(TextWriter, SaveOptions)
Outputs the wrapped element to the specified System.IO.Stream instance.
Declaration
public void Save(TextWriter textWriter, SaveOptions options)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.TextWriter | textWriter | The text writer.  | 
      
| System.Xml.Linq.SaveOptions | options | The options.  | 
      
Save(XmlWriter)
Outputs the wrapped element to the specified System.Xml.XmlWriter instance.
Declaration
public void Save(XmlWriter xmlWriter)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.XmlWriter | xmlWriter | The XML writer.  | 
      
WriteXml(XmlWriter)
Converts an object into its XML representation.
Declaration
public void WriteXml(XmlWriter writer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.XmlWriter | writer | The System.Xml.XmlWriter stream to which the object is serialized.  | 
      
Operators
Implicit(XElementWrapper to XElement)
Performs an implicit conversion from XElementWrapper to System.Xml.Linq.XElement.
Declaration
public static implicit operator XElement(XElementWrapper elementWrapper)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XElementWrapper | elementWrapper | The element wrapper.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Xml.Linq.XElement | The result of the conversion.  | 
      
Implicit(XElement to XElementWrapper)
Performs an implicit conversion from System.Xml.Linq.XElement to XElementWrapper.
Declaration
public static implicit operator XElementWrapper(XElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.Linq.XElement | element | The element.  | 
      
Returns
| Type | Description | 
|---|---|
| XElementWrapper | The result of the conversion.  |