OkResult Class

Definition

An StatusCodeResult that when executed will produce an empty Status200OK response.

public ref class OkResult : Microsoft::AspNetCore::Mvc::StatusCodeResult
public class OkResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(200)]
public class OkResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
type OkResult = class
    inherit StatusCodeResult
Public Class OkResult
Inherits StatusCodeResult
Inheritance
Attributes

Constructors

OkResult()

Initializes a new instance of the OkResult class.

Properties

StatusCode

Gets the HTTP status code.

(Inherited from StatusCodeResult)

Methods

ExecuteResult(ActionContext) (Inherited from StatusCodeResult)
ExecuteResultAsync(ActionContext)

Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task.

(Inherited from ActionResult)

Explicit Interface Implementations

IStatusCodeActionResult.StatusCode (Inherited from StatusCodeResult)

Applies to