IOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext) IOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext) IOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext) IOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext) Method

Definition

Determines whether this IOutputFormatter can serialize an object of the specified type.

public:
 bool CanWriteResult(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterCanWriteContext ^ context);
public bool CanWriteResult (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context);
abstract member CanWriteResult : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext -> bool
Public Function CanWriteResult (context As OutputFormatterCanWriteContext) As Boolean

Parameters

Returns

Returns true if the formatter can write the response; false otherwise.

Applies to