Share via


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

context
OutputFormatterCanWriteContext

The formatter context associated with the call.

Returns

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

Applies to