Web API Core | ComponentOne
C1.Web.Api.Document Namespace / DocumentController 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 Overridable Function BadRequest( _
       ByVal error As Object _
    ) As BadRequestObjectResult
    public virtual BadRequestObjectResult BadRequest( 
       object error
    )

    Parameters

    error

    Return Value

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