ObjectResult Sınıf

Tanım

ActionResultYürütmenin, ana bilgisayar tarafından belirtilen mekanizmaların kullanıldığı bir nesneyi yanıta yazar.

public ref class ObjectResult : Microsoft::AspNetCore::Mvc::ActionResult
public ref class ObjectResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::Infrastructure::IStatusCodeActionResult
public class ObjectResult : Microsoft.AspNetCore.Mvc.ActionResult
public class ObjectResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
type ObjectResult = class
    inherit ActionResult
type ObjectResult = class
    inherit ActionResult
    interface IStatusCodeActionResult
    interface IActionResult
type ObjectResult = class
    inherit ActionResult
    interface IActionResult
    interface IStatusCodeActionResult
Public Class ObjectResult
Inherits ActionResult
Public Class ObjectResult
Inherits ActionResult
Implements IActionResult, IStatusCodeActionResult
Devralma
ObjectResult
Türetilmiş
Uygulamalar

Oluşturucular

ObjectResult(Object)

ObjectResultBelirtilen ile yeni bir örnek oluşturur value .

Özellikler

ContentTypes

Alır veya ayarlar MediaTypeCollection .

DeclaredType

Belirtilen türü alır veya ayarlar.

Formatters

Koleksiyonu IOutputFormatter .

StatusCode

HTTP durum kodunu alır veya ayarlar.

Value

Nesne sonucu.

Yöntemler

ExecuteResult(ActionContext)

Eylem yönteminin sonuç işlemi zaman uyumlu olarak yürütür. Bu yöntem, bir eylem yönteminin sonucu işlemesi için MVC tarafından çağrılır.

(Devralındığı yer: ActionResult)
ExecuteResultAsync(ActionContext)

Eylem yönteminin sonuç işlemini zaman uyumsuz olarak yürütür. Bu yöntem, bir eylem yönteminin sonucunu işlemek için MVC tarafından çağırılır.

OnFormatting(ActionContext)

Bu yöntem, biçimlendirici çıkış akışına yazmadan önce çağrılır.

Şunlara uygulanır