ActionResult<TValue> Class

Definition

A type that wraps either an TValue instance or an ActionResult.

C#
public sealed class ActionResult<TValue> : Microsoft.AspNetCore.Mvc.Infrastructure.IConvertToActionResult

Type Parameters

TValue

The type of the result.

Inheritance
ActionResult<TValue>
Implements

Constructors

ActionResult<TValue>(ActionResult)

Initializes a new instance of ActionResult<TValue> using the specified ActionResult.

ActionResult<TValue>(TValue)

Initializes a new instance of ActionResult<TValue> using the specified value.

Properties

Result

Gets the ActionResult.

Value

Gets the value.

Operators

Explicit Interface Implementations

Applies to

Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0