OkResult Class

An Microsoft.AspNetCore.Mvc.StatusCodeResult that when executed will produce an empty Microsoft.AspNetCore.Http.StatusCodes.Status200OK response.

Namespace
Microsoft.AspNetCore.Mvc
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class OkResult : StatusCodeResult, IActionResult
class Microsoft.AspNetCore.Mvc.OkResult

Constructors

OkResult()

Initializes a new instance of the Microsoft.AspNetCore.Mvc.OkResult class.

public OkResult()