SerializableErrorWrapper Class

Definition

Wrapper class for SerializableError to enable it to be serialized by the xml formatters.

public ref class SerializableErrorWrapper sealed : Microsoft::AspNetCore::Mvc::Formatters::Xml::IUnwrappable, System::Xml::Serialization::IXmlSerializable
public sealed class SerializableErrorWrapper : Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable, System.Xml.Serialization.IXmlSerializable
type SerializableErrorWrapper = class
    interface IXmlSerializable
    interface IUnwrappable
type SerializableErrorWrapper = class
    interface IUnwrappable
    interface IXmlSerializable
Public NotInheritable Class SerializableErrorWrapper
Implements IUnwrappable, IXmlSerializable
Inheritance
SerializableErrorWrapper
Implements

Constructors

SerializableErrorWrapper()

Initializes a new SerializableErrorWrapper

SerializableErrorWrapper(SerializableError)

Initializes a new instance of the SerializableErrorWrapper class.

Properties

SerializableError

Gets the wrapped object which is serialized/deserialized into XML representation.

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.

ReadXml(XmlReader)

Generates a SerializableError object from its XML representation.

Unwrap(Type)

Unwraps an object.

WriteXml(XmlWriter)

Converts the wrapped SerializableError object into its XML representation.

Applies to