OutputFormatter.WriteResponseHeaders(OutputFormatterWriteContext) 方法

定义

设置 对象上的 HttpResponse 标头。

public:
 virtual void WriteResponseHeaders(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context);
public virtual void WriteResponseHeaders (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context);
abstract member WriteResponseHeaders : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext -> unit
override this.WriteResponseHeaders : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext -> unit
Public Overridable Sub WriteResponseHeaders (context As OutputFormatterWriteContext)

参数

context
OutputFormatterWriteContext

与调用关联的格式化程序上下文。

适用于