Web API Core | ComponentOne
C1.Web.Api.Document Namespace / DocumentController Class / StatusCode Method / StatusCode(Int32,Object) Method
The status code to set on the response.
The value to set on the Microsoft.AspNetCore.Mvc.ObjectResult.

In This Topic
    StatusCode(Int32,Object) Method
    In This Topic
    Creates a Microsoft.AspNetCore.Mvc.ObjectResult object by specifying a statusCode and value
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function StatusCode( _
       ByVal statusCode As Integer, _
       ByVal value As Object _
    ) As ObjectResult
    public virtual ObjectResult StatusCode( 
       int statusCode,
       object value
    )

    Parameters

    statusCode
    The status code to set on the response.
    value
    The value to set on the Microsoft.AspNetCore.Mvc.ObjectResult.

    Return Value

    The created Microsoft.AspNetCore.Mvc.ObjectResult object for the response.
    See Also