Partilhar via


StreamOutputFormatter.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 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 Function CanWriteResult (context As OutputFormatterCanWriteContext) As Boolean

Parâmetros

context
OutputFormatterCanWriteContext

O contexto do formatador associado à chamada.

Retornos

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

Implementações

Aplica-se a