StringOutputFormatter Class¶
Syntax¶
public class StringOutputFormatter : OutputFormatter, IOutputFormatter, IApiResponseFormatMetadataProvider
Constructors¶
-
Microsoft.AspNet.Mvc.StringOutputFormatter.StringOutputFormatter()
public StringOutputFormatter()
-
Methods¶
-
CanWriteResult
(Microsoft.AspNet.Mvc.OutputFormatterContext, MediaTypeHeaderValue)¶ Arguments: - context (Microsoft.AspNet.Mvc.OutputFormatterContext) –
- contentType (MediaTypeHeaderValue) –
Return type: System.Boolean
public override bool CanWriteResult(OutputFormatterContext context, MediaTypeHeaderValue contentType)
-
WriteResponseBodyAsync
(Microsoft.AspNet.Mvc.OutputFormatterContext)¶ Arguments: - context (Microsoft.AspNet.Mvc.OutputFormatterContext) –
Return type: System.Threading.Tasks.Task
public override Task WriteResponseBodyAsync(OutputFormatterContext context)
-