XmlSerializerInputFormatter XmlSerializerInputFormatter XmlSerializerInputFormatter XmlSerializerInputFormatter Class

Definition

This class handles deserialization of input XML data to strongly-typed objects using XmlSerializer

public ref class XmlSerializerInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextInputFormatter, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatterExceptionPolicy
public class XmlSerializerInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy
type XmlSerializerInputFormatter = class
    inherit TextInputFormatter
    interface IInputFormatterExceptionPolicy
Public Class XmlSerializerInputFormatter
Inherits TextInputFormatter
Implements IInputFormatterExceptionPolicy
Inheritance
XmlSerializerInputFormatterXmlSerializerInputFormatterXmlSerializerInputFormatterXmlSerializerInputFormatter
Implements

Constructors

XmlSerializerInputFormatter() XmlSerializerInputFormatter() XmlSerializerInputFormatter() XmlSerializerInputFormatter()

Initializes a new instance of XmlSerializerInputFormatter.

XmlSerializerInputFormatter(Boolean) XmlSerializerInputFormatter(Boolean) XmlSerializerInputFormatter(Boolean) XmlSerializerInputFormatter(Boolean)

Initializes a new instance of XmlSerializerInputFormatter.

XmlSerializerInputFormatter(MvcOptions) XmlSerializerInputFormatter(MvcOptions) XmlSerializerInputFormatter(MvcOptions) XmlSerializerInputFormatter(MvcOptions)

Initializes a new instance of XmlSerializerInputFormatter.

Properties

ExceptionPolicy ExceptionPolicy ExceptionPolicy ExceptionPolicy
MaxDepth MaxDepth MaxDepth MaxDepth

Indicates the acceptable input XML depth.

SupportedEncodings SupportedEncodings SupportedEncodings SupportedEncodings

Gets the mutable collection of character encodings supported by this TextInputFormatter. The encodings are used when reading the data.

(Inherited from TextInputFormatter)
SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes

Gets the mutable collection of media type elements supported by this InputFormatter.

(Inherited from InputFormatter)
WrapperProviderFactories WrapperProviderFactories WrapperProviderFactories WrapperProviderFactories

Gets the list of IWrapperProviderFactory to provide the wrapping type for de-serialization.

XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

The quotas include - DefaultMaxDepth, DefaultMaxStringContentLength, DefaultMaxArrayLength, DefaultMaxBytesPerRead, DefaultMaxNameTableCharCount

Methods

CanRead(InputFormatterContext) CanRead(InputFormatterContext) CanRead(InputFormatterContext) CanRead(InputFormatterContext) Inherited from InputFormatter
CanReadType(Type) CanReadType(Type) CanReadType(Type) CanReadType(Type)
CreateSerializer(Type) CreateSerializer(Type) CreateSerializer(Type) CreateSerializer(Type)

Called during deserialization to get the XmlSerializer.

CreateXmlReader(Stream, Encoding) CreateXmlReader(Stream, Encoding) CreateXmlReader(Stream, Encoding) CreateXmlReader(Stream, Encoding)

Called during deserialization to get the XmlReader.

GetCachedSerializer(Type) GetCachedSerializer(Type) GetCachedSerializer(Type) GetCachedSerializer(Type)

Gets the cached serializer or creates and caches the serializer for the given type.

GetDefaultValueForType(Type) GetDefaultValueForType(Type) GetDefaultValueForType(Type) GetDefaultValueForType(Type)

Gets the default value for a given type. Used to return a default value when the body contains no content.

(Inherited from InputFormatter)
GetSerializableType(Type) GetSerializableType(Type) GetSerializableType(Type) GetSerializableType(Type)

Gets the type to which the XML will be deserialized.

GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) Inherited from InputFormatter
ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) Inherited from InputFormatter
ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) Inherited from TextInputFormatter
ReadRequestBodyAsync(InputFormatterContext, Encoding) ReadRequestBodyAsync(InputFormatterContext, Encoding) ReadRequestBodyAsync(InputFormatterContext, Encoding) ReadRequestBodyAsync(InputFormatterContext, Encoding)
SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext)

Returns an Encoding based on context's character set.

(Inherited from TextInputFormatter)

Applies to