StringOutputFormatter StringOutputFormatter StringOutputFormatter StringOutputFormatter Class

Definition

A TextOutputFormatter for simple text content.

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
Inheritance

Constructors

StringOutputFormatter() StringOutputFormatter() StringOutputFormatter() StringOutputFormatter()

Methods

CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext)
CanWriteType(Type) CanWriteType(Type) CanWriteType(Type) CanWriteType(Type)

Returns a value indicating whether or not the given type can be written by this serializer.

(Inherited from OutputFormatter)
GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) Inherited from OutputFormatter
SelectCharacterEncoding(OutputFormatterWriteContext) SelectCharacterEncoding(OutputFormatterWriteContext) SelectCharacterEncoding(OutputFormatterWriteContext) SelectCharacterEncoding(OutputFormatterWriteContext)

Determines the best Encoding amongst the supported encodings for reading or writing an HTTP entity body based on the provided content type.

(Inherited from TextOutputFormatter)
WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext) Inherited from TextOutputFormatter
WriteResponseBodyAsync(OutputFormatterWriteContext) WriteResponseBodyAsync(OutputFormatterWriteContext) WriteResponseBodyAsync(OutputFormatterWriteContext) WriteResponseBodyAsync(OutputFormatterWriteContext) Inherited from TextOutputFormatter
WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding) WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding) WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding) WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)
WriteResponseHeaders(OutputFormatterWriteContext) WriteResponseHeaders(OutputFormatterWriteContext) WriteResponseHeaders(OutputFormatterWriteContext) WriteResponseHeaders(OutputFormatterWriteContext)

Sets the headers on HttpResponse object.

(Inherited from OutputFormatter)

Properties

SupportedEncodings SupportedEncodings SupportedEncodings SupportedEncodings

Gets the mutable collection of character encodings supported by this TextOutputFormatter. The encodings are used when writing the data.

(Inherited from TextOutputFormatter)
SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes

Gets the mutable collection of media type elements supported by this OutputFormatter.

(Inherited from OutputFormatter)

Applies to