OkObjectResult Class¶
An Microsoft.AspNetCore.Mvc.ObjectResult
that when executed performs content negotiation, formats the entity body, and
will produce a Microsoft.AspNetCore.Http.StatusCodes.Status200OK
response if negotiation and formatting succeed.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class OkObjectResult : ObjectResult, IActionResult
-
class
Microsoft.AspNetCore.Mvc.
OkObjectResult
Constructors¶
-
OkObjectResult
(System.Object)¶ Initializes a new instance of the
Microsoft.AspNetCore.Mvc.OkObjectResult
class.Arguments: value (System.Object) – The content to format into the entity body. public OkObjectResult(object value)
-