Share via


Ok Class

Definition

An IResult that on execution will write an object to the response with Ok (200) status code.

public sealed class Ok : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type Ok = class
    interface IResult
    interface IEndpointMetadataProvider
    interface IStatusCodeHttpResult
Public NotInheritable Class Ok
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult
Inheritance
Ok
Implements

Properties

StatusCode

Gets the HTTP status code: Status200OK

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Explicit Interface Implementations

IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder)

Populates metadata for the related Endpoint and MethodInfo.

IStatusCodeHttpResult.StatusCode

Applies to