次の方法で共有


XmlDataContractSerializerInputFormatter クラス

定義

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

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

コンストラクター

XmlDataContractSerializerInputFormatter()
古い.

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

XmlDataContractSerializerInputFormatter(Boolean)
古い.

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

XmlDataContractSerializerInputFormatter(MvcOptions)

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

プロパティ

ExceptionPolicy

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

MaxDepth

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

SerializerSettings

を構成するために使用する DataContractSerializerSettings を取得または設定します DataContractSerializer

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)

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

CreateXmlReader(Stream, Encoding)

を取得するために逆シリアル化中に呼び出されます 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)

適用対象