ObjectResult Class¶
- Namespace
Microsoft.AspNetCore.Mvc- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class ObjectResult : ActionResult, IActionResult
-
class
Microsoft.AspNetCore.Mvc.ObjectResult
Constructors¶
-
ObjectResult(System.Object)¶ public ObjectResult(object value)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ObjectResult.ContentTypes¶ Return type: Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection public MediaTypeCollection ContentTypes { get; set; }
-
Microsoft.AspNetCore.Mvc.ObjectResult.DeclaredType¶ Return type: System.Type public Type DeclaredType { get; set; }
-
Microsoft.AspNetCore.Mvc.ObjectResult.Formatters¶ Return type: Microsoft.AspNetCore.Mvc.Formatters.FormatterCollection<Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter> public FormatterCollection<IOutputFormatter> Formatters { get; set; }
-
Microsoft.AspNetCore.Mvc.ObjectResult.StatusCode¶ Gets or sets the HTTP status code.
Return type: System.Nullable<System.Int32> public int ? StatusCode { get; set; }
-
Microsoft.AspNetCore.Mvc.ObjectResult.Value¶ Return type: System.Object public object Value { get; set; }
-
Methods¶
-
ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext)¶ Return type: System.Threading.Tasks.Task public override Task ExecuteResultAsync(ActionContext context)
-
OnFormatting(Microsoft.AspNetCore.Mvc.ActionContext)¶ This method is called before the formatter writes to the output stream.
public virtual void OnFormatting(ActionContext context)
-