Dela via


OutputFormatter.CanWriteResult(OutputFormatterCanWriteContext) Method

Definition

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

public:
 virtual bool CanWriteResult(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterCanWriteContext ^ context);
public virtual bool CanWriteResult (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context);
abstract member CanWriteResult : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext -> bool
override this.CanWriteResult : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext -> bool
Public Overridable 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.

Implements

Applies to