Show / Hide Table of Contents

    Class XmlSerializationInputFormatter

    This class handles deserialization of JSON to objects using XmlFormatter.

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.Formatters.InputFormatter
    Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter
    XmlSerializationInputFormatter
    Implements
    Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter
    Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider
    Inherited Members
    Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter.UTF8EncodingWithoutBOM
    Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter.UTF16EncodingLittleEndian
    Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter.ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext)
    Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter.SelectCharacterEncoding(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext)
    Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter.SupportedEncodings
    Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.GetDefaultValueForType(System.Type)
    Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.CanRead(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext)
    Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.CanReadType(System.Type)
    Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.ReadAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext)
    Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.GetSupportedContentTypes(System.String, System.Type)
    Microsoft.AspNetCore.Mvc.Formatters.InputFormatter.SupportedMediaTypes
    Namespace: Cuemon.AspNetCore.Mvc.Formatters.Xml
    Assembly: Cuemon.AspNetCore.Mvc.Formatters.Xml.dll
    Syntax
    public class XmlSerializationInputFormatter : TextInputFormatter, IInputFormatter, IApiRequestFormatMetadataProvider

    Constructors

    | Improve this Doc

    XmlSerializationInputFormatter(XmlFormatterOptions)

    Initializes a new instance of the XmlSerializationInputFormatter class.

    Declaration
    public XmlSerializationInputFormatter(XmlFormatterOptions formatterOptions)
    Parameters
    Type Name Description
    XmlFormatterOptions formatterOptions

    Methods

    | Improve this Doc

    ReadRequestBodyAsync(InputFormatterContext, Encoding)

    Reads an object from the request body.

    Declaration
    public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context

    The Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext.

    System.Text.Encoding encoding

    The System.Text.Encoding used to read the request body.

    Returns
    Type Description
    System.Threading.Tasks.Task<InputFormatterResult>

    A System.Threading.Tasks.Task that on completion deserializes the request body.

    Overrides
    Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter.ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext, System.Text.Encoding)

    Implements

    Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter
    Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider

    Extension Methods

    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Byte[], Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, Byte[]>, Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Byte[], Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Byte[], Action<ContentTimeBasedOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX