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
| Type | Name | Description |
|---|---|---|
| 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 XmlSchemaProviderAttribute to the class.
public XmlSchema GetSchema()
Returns
| Type | Description |
|---|---|
| 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
| Type | Condition |
|---|---|
| NotImplementedException |
ReadXml(XmlReader)
Generates an object from its XML representation.
public void ReadXml(XmlReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlReader | reader | 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
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
Save(Stream, SaveOptions)
Saves the specified stream.
public void Save(Stream stream, SaveOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
| SaveOptions | options | The options. |
Save(TextWriter)
Outputs the wrapped element to the specified TextWriter instance.
public void Save(TextWriter textWriter)
Parameters
| Type | Name | Description |
|---|---|---|
| TextWriter | textWriter | The text writer. |
Save(TextWriter, SaveOptions)
Outputs the wrapped element to the specified Stream instance.
public void Save(TextWriter textWriter, SaveOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| TextWriter | textWriter | The text writer. |
| SaveOptions | options | The options. |
Save(XmlWriter)
Outputs the wrapped element to the specified XmlWriter instance.
public void Save(XmlWriter xmlWriter)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlWriter | xmlWriter | The XML writer. |
WriteXml(XmlWriter)
Converts an object into its XML representation.
public void WriteXml(XmlWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlWriter | writer | 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
| Type | Name | Description |
|---|---|---|
| XElementWrapper | elementWrapper | The element wrapper. |
Returns
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| XElement | element | The element. |
Returns
| Type | Description |
|---|---|
| XElementWrapper | The result of the conversion. |