OutputFormatter.CanWriteResult(OutputFormatterCanWriteContext) Método

Definição

Determina se isso IOutputFormatter pode serializar um objeto do tipo especificado.

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

Parâmetros

context
OutputFormatterCanWriteContext

O contexto de formatador associado à chamada.

Retornos

Retornará true se o formatador puder gravar a resposta; caso contrário, false .

Implementações

Aplica-se a