Compartilhar via


StringOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext) Método

Definição

Verifica se o objeto a ser formatado é um string e prossegue com as verificações padrão de Microsoft.AspNetCore.Mvc.Formatters.OutputFormatter.CanWriteResult(OutputFormatterCanWriteContext).

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

Aplica-se a