TextOutputFormatter 클래스

정의

지정된 텍스트 형식의 개체를 출력 스트림에 씁니다.

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

생성자

TextOutputFormatter()

TextOutputFormatter 클래스의 새 인스턴스를 초기화합니다.

속성

SupportedEncodings

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

SupportedMediaTypes

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

(다음에서 상속됨 OutputFormatter)

메서드

CanWriteResult(OutputFormatterCanWriteContext)

지정된 형식의 개체를 serialize할 수 있는지 여부를 IOutputFormatter 결정합니다.

(다음에서 상속됨 OutputFormatter)
CanWriteType(Type)

이 serializer에서 지정된 형식을 쓸 수 있는지 여부를 나타내는 값을 반환합니다.

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

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

(다음에서 상속됨 OutputFormatter)
SelectCharacterEncoding(OutputFormatterWriteContext)

제공된 콘텐츠 형식에 따라 HTTP 엔터티 본문을 읽거나 쓰기 위해 지원되는 인코딩 중에서 가장 적합한 Encoding 항목을 결정합니다.

WriteAsync(OutputFormatterWriteContext)

의 Object 속성으로 context표시되는 개체를 씁니다.

WriteResponseBodyAsync(OutputFormatterWriteContext)

응답 본문을 씁니다.

WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

응답 본문을 씁니다.

WriteResponseHeaders(OutputFormatterWriteContext)

개체의 헤더를 HttpResponse 설정합니다.

(다음에서 상속됨 OutputFormatter)

적용 대상