XmlSerializerInputFormatter クラス

定義

このクラスは、 を使用して、入力 XML データの厳密に型指定されたオブジェクトへの逆シリアル化を処理します。 XmlSerializer

public ref class XmlSerializerInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextInputFormatter
public ref class XmlSerializerInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextInputFormatter, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatterExceptionPolicy
public class XmlSerializerInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter
public class XmlSerializerInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy
type XmlSerializerInputFormatter = class
    inherit TextInputFormatter
type XmlSerializerInputFormatter = class
    inherit TextInputFormatter
    interface IInputFormatterExceptionPolicy
Public Class XmlSerializerInputFormatter
Inherits TextInputFormatter
Public Class XmlSerializerInputFormatter
Inherits TextInputFormatter
Implements IInputFormatterExceptionPolicy
継承
XmlSerializerInputFormatter
実装

コンストラクター

XmlSerializerInputFormatter()
古い.

XmlSerializerInputFormatter の新しいインスタンスを初期化します。

XmlSerializerInputFormatter(Boolean)
古い.

XmlSerializerInputFormatter の新しいインスタンスを初期化します。

XmlSerializerInputFormatter(MvcOptions)

XmlSerializerInputFormatter の新しいインスタンスを初期化します。

プロパティ

ExceptionPolicy

本文モデル バインダーがすべての例外を処理する必要があるかどうかを示すフラグを取得します。 例外が処理された場合、本文モデル バインダーは例外をモデル状態エラーに変換します。それ以外の場合は例外の伝達が許可されます。

MaxDepth

許容される入力 XML 深度を示します。

SupportedEncodings

この TextInputFormatterでサポートされている文字エンコーディングの変更可能なコレクションを取得します。 エンコードは、データを読み取るときに使用されます。

(継承元 TextInputFormatter)
SupportedMediaTypes

この InputFormatterでサポートされているメディア型要素の変更可能なコレクションを取得します。

(継承元 InputFormatter)
WrapperProviderFactories

シリアル化解除のラップの種類を提供する の一覧 IWrapperProviderFactory を取得します。

XmlDictionaryReaderQuotas

クォータには、 - DefaultMaxDepth、DefaultMaxStringContentLength、DefaultMaxArrayLength、DefaultMaxBytesPerRead、DefaultMaxNameTableCharCount が含まれます。

メソッド

CanRead(InputFormatterContext)

これが IInputFormatter の オブジェクトcontextModelTypeを逆シリアル化できるかどうかを判断します。

(継承元 InputFormatter)
CanReadType(Type)

指定 InputFormatter した のオブジェクトを逆シリアル化できるかどうかを判断します type

CreateSerializer(Type)

を取得するために逆シリアル化中に呼び出されます XmlSerializer

CreateXmlReader(Stream, Encoding)

を取得するために逆シリアル化中に呼び出されます XmlReader

CreateXmlReader(Stream, Encoding, Type)

を取得するために逆シリアル化中に呼び出されます XmlReader

GetCachedSerializer(Type)

キャッシュされたシリアライザーを取得するか、指定された型のシリアライザーを作成してキャッシュします。

GetDefaultValueForType(Type)

指定した型の既定値を取得します。 本文にコンテンツが含まれない場合に既定値を返すために使用します。

(継承元 InputFormatter)
GetSerializableType(Type)

XML が逆シリアル化される型を取得します。

GetSupportedContentTypes(String, Type)

contentTypeの でサポートされているコンテンツ タイプのフィルター処理されたIInputFormatter一覧をobjectType取得します。

(継承元 InputFormatter)
ReadAsync(InputFormatterContext)

要求本文から オブジェクトを読み取ります。

(継承元 InputFormatter)
ReadRequestBodyAsync(InputFormatterContext)

要求本文から オブジェクトを読み取ります。

(継承元 TextInputFormatter)
ReadRequestBodyAsync(InputFormatterContext, Encoding)

要求本文から オブジェクトを読み取ります。

SelectCharacterEncoding(InputFormatterContext)

の文字セットにcontext基づいて をEncoding返します。

(継承元 TextInputFormatter)

適用対象