Web API Core | ComponentOne
C1.Web.Api Namespace / C1ApiController Class / BadRequest Method / BadRequest(ModelStateDictionary) Method

In This Topic
    BadRequest(ModelStateDictionary) Method
    In This Topic
    Creates an Microsoft.AspNetCore.Mvc.BadRequestObjectResult that produces a Bad Request (400) response.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function BadRequest( _
       ByVal modelState As ModelStateDictionary _
    ) As BadRequestObjectResult

    Parameters

    modelState

    Return Value

    The created Microsoft.AspNetCore.Mvc.BadRequestObjectResult for the response.
    See Also