ConflictObjectResult 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ConflictObjectResult(ModelStateDictionary) |
创建一个新的 ConflictObjectResult 实例。 |
ConflictObjectResult(Object) |
创建一个新的 ConflictObjectResult 实例。 |
ConflictObjectResult(ModelStateDictionary)
- Source:
- ConflictObjectResult.cs
- Source:
- ConflictObjectResult.cs
- Source:
- ConflictObjectResult.cs
创建一个新的 ConflictObjectResult 实例。
public:
ConflictObjectResult(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
public ConflictObjectResult (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
new Microsoft.AspNetCore.Mvc.ConflictObjectResult : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ConflictObjectResult
Public Sub New (modelState As ModelStateDictionary)
参数
- modelState
- ModelStateDictionary
ModelStateDictionary 包含验证错误。
适用于
ConflictObjectResult(Object)
- Source:
- ConflictObjectResult.cs
- Source:
- ConflictObjectResult.cs
- Source:
- ConflictObjectResult.cs
创建一个新的 ConflictObjectResult 实例。
public:
ConflictObjectResult(System::Object ^ error);
public ConflictObjectResult (object error);
public ConflictObjectResult (object? error);
new Microsoft.AspNetCore.Mvc.ConflictObjectResult : obj -> Microsoft.AspNetCore.Mvc.ConflictObjectResult
Public Sub New (error As Object)
参数
- error
- Object
包含要返回给客户端的错误。