OkObjectResult Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An ObjectResult that when executed performs content negotiation, formats the entity body, and will produce a Status200OK response if negotiation and formatting succeed.
public ref class OkObjectResult : Microsoft::AspNetCore::Mvc::ObjectResult
public class OkObjectResult : Microsoft.AspNetCore.Mvc.ObjectResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(200)]
public class OkObjectResult : Microsoft.AspNetCore.Mvc.ObjectResult
type OkObjectResult = class
inherit ObjectResult
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(200)>]
type OkObjectResult = class
inherit ObjectResult
Public Class OkObjectResult
Inherits ObjectResult
- Inheritance
- Attributes
Ok |
Initializes a new instance of the OkObjectResult class. |
Content |
Gets or sets the MediaTypeCollection. (Inherited from ObjectResult) |
Declared |
Gets or sets the declared type. (Inherited from ObjectResult) |
Formatters |
The collection of IOutputFormatter. (Inherited from ObjectResult) |
Status |
Gets or sets the HTTP status code. (Inherited from ObjectResult) |
Value |
The object result. (Inherited from ObjectResult) |
Execute |
Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method. (Inherited from ActionResult) |
Execute |
Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. (Inherited from ObjectResult) |
On |
This method is called before the formatter writes to the output stream. (Inherited from ObjectResult) |