InputFormatter 클래스

정의

요청 본문에서 개체를 읽습니다.

public ref class InputFormatter abstract : Microsoft::AspNetCore::Mvc::ApiExplorer::IApiRequestFormatMetadataProvider, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter
public abstract class InputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter
type InputFormatter = class
    interface IInputFormatter
    interface IApiRequestFormatMetadataProvider
type InputFormatter = class
    interface IApiRequestFormatMetadataProvider
    interface IInputFormatter
Public MustInherit Class InputFormatter
Implements IApiRequestFormatMetadataProvider, IInputFormatter
상속
InputFormatter
파생
구현

생성자

InputFormatter()

요청 본문에서 개체를 읽습니다.

속성

SupportedMediaTypes

InputFormatter에서 지원하는 미디어 형식 요소의 변경 가능한 컬렉션을 가져옵니다.

메서드

CanRead(InputFormatterContext)

의 개체contextModelType를 역직렬화할 수 있는지 여부를 IInputFormatter 결정합니다.

CanReadType(Type)

지정된 type의 개체를 역직렬화할 수 있는지 여부를 InputFormatter 결정합니다.

GetDefaultValueForType(Type)

지정된 형식의 기본값을 가져옵니다. 본문에 콘텐츠가 없는 경우 기본값을 반환하는 데 사용됩니다.

GetSupportedContentTypes(String, Type)

contentType에 대해 objectType 에서 지원하는 IInputFormatter 콘텐츠 형식의 필터링된 목록을 가져옵니다.

ReadAsync(InputFormatterContext)

요청 본문에서 개체를 읽습니다.

ReadRequestBodyAsync(InputFormatterContext)

요청 본문에서 개체를 읽습니다.

적용 대상