IClientErrorFactory.GetClientError 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定 clientError
的 actionContext
转换。
public:
Microsoft::AspNetCore::Mvc::IActionResult ^ GetClientError(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::Infrastructure::IClientErrorActionResult ^ clientError);
public Microsoft.AspNetCore.Mvc.IActionResult GetClientError (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult clientError);
public Microsoft.AspNetCore.Mvc.IActionResult? GetClientError (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult clientError);
abstract member GetClientError : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult -> Microsoft.AspNetCore.Mvc.IActionResult
Public Function GetClientError (actionContext As ActionContext, clientError As IClientErrorActionResult) As IActionResult
参数
- actionContext
- ActionContext
- clientError
- IClientErrorActionResult
返回
IActionResult将返回到客户端的 。