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

In This Topic
    BadRequest(Object) 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 error As Object _
    ) As BadRequestObjectResult
    public override BadRequestObjectResult BadRequest( 
       object error
    )

    Parameters

    error

    Return Value

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