StringOutputFormatter 클래스

정의

TextOutputFormatter 간단한 텍스트 콘텐츠에 대한 입니다.

public ref class StringOutputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextOutputFormatter
public class StringOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter
type StringOutputFormatter = class
    inherit TextOutputFormatter
Public Class StringOutputFormatter
Inherits TextOutputFormatter
상속

생성자

StringOutputFormatter()

또는 UnicodeUTF8 인코딩된 일반 텍스트만 지원하는 새 StringOutputFormatter 를 만듭니다.

속성

SupportedEncodings

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

(다음에서 상속됨 TextOutputFormatter)
SupportedMediaTypes

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

(다음에서 상속됨 OutputFormatter)

메서드

CanWriteResult(OutputFormatterCanWriteContext)

서식을 지정할 개체가 인지 string 확인하고 의 표준 검사를 Microsoft.AspNetCore.Mvc.Formatters.OutputFormatter.CanWriteResult(OutputFormatterCanWriteContext)진행합니다.

CanWriteType(Type)

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

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

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

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

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

(다음에서 상속됨 TextOutputFormatter)
WriteAsync(OutputFormatterWriteContext)

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

(다음에서 상속됨 TextOutputFormatter)
WriteResponseBodyAsync(OutputFormatterWriteContext)

응답 본문을 씁니다.

(다음에서 상속됨 TextOutputFormatter)
WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

응답 본문을 씁니다.

WriteResponseHeaders(OutputFormatterWriteContext)

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

(다음에서 상속됨 OutputFormatter)

적용 대상