TextInputFormatter 클래스

정의

텍스트 형식의 요청 본문에서 개체를 읽습니다.

public ref class TextInputFormatter abstract : Microsoft::AspNetCore::Mvc::Formatters::InputFormatter
public abstract class TextInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.InputFormatter
type TextInputFormatter = class
    inherit InputFormatter
Public MustInherit Class TextInputFormatter
Inherits InputFormatter
상속
TextInputFormatter
파생

생성자

TextInputFormatter()

텍스트 형식의 요청 본문에서 개체를 읽습니다.

필드

UTF16EncodingLittleEndian

BOM에서 littleEndian 바이트 순서를 사용하고 잘못된 바이트를 throw하는 UTF16 인코딩을 반환합니다.

UTF8EncodingWithoutBOM

BOM 없이 UTF8 인코딩을 반환하고 잘못된 바이트를 throw합니다.

속성

SupportedEncodings

TextInputFormatter에서 지원하는 문자 인코딩의 변경 가능한 컬렉션을 가져옵니다. 인코딩은 데이터를 읽을 때 사용됩니다.

SupportedMediaTypes

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

(다음에서 상속됨 InputFormatter)

메서드

CanRead(InputFormatterContext)

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

(다음에서 상속됨 InputFormatter)
CanReadType(Type)

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

(다음에서 상속됨 InputFormatter)
GetDefaultValueForType(Type)

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

(다음에서 상속됨 InputFormatter)
GetSupportedContentTypes(String, Type)

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

(다음에서 상속됨 InputFormatter)
ReadAsync(InputFormatterContext)

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

(다음에서 상속됨 InputFormatter)
ReadRequestBodyAsync(InputFormatterContext)

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

ReadRequestBodyAsync(InputFormatterContext, Encoding)

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

SelectCharacterEncoding(InputFormatterContext)

Encoding 의 문자 집합을 기반으로 context을 반환합니다.

적용 대상