共用方式為


ObjectResult.OnFormatting(ActionContext) 方法

定義

這個方法會在格式器寫入輸出資料流程之前呼叫。

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

參數

context
ActionContext

適用於