Show / Hide Table of Contents

    Class XElementWrapper

    A wrapper for XElements.

    Inheritance
    Object
    XElementWrapper
    Implements
    IXmlSerializable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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
    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.

    Declaration
    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.

    Declaration
    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.

    Declaration
    public void Save(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream.

    Save(Stream, SaveOptions)

    Saves the specified stream.

    Declaration
    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.

    Declaration
    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.

    Declaration
    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.

    Declaration
    public void Save(XmlWriter xmlWriter)
    Parameters
    Type Name Description
    XmlWriter xmlWriter

    The XML writer.

    WriteXml(XmlWriter)

    Converts an object into its XML representation.

    Declaration
    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.

    Declaration
    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.

    Declaration
    public static implicit operator XElementWrapper(XElement element)
    Parameters
    Type Name Description
    XElement element

    The element.

    Returns
    Type Description
    XElementWrapper

    The result of the conversion.

    Implements

    System.Xml.Serialization.IXmlSerializable
    About Us Contact Imprint Terms Data privacy
    © 2021 DocuWare Corporation powered by DocFX Back to top