ObjectResult Sınıf

Tanım

ActionResult Yürütmede olan, konak tarafından sağlanan mekanizmaları kullanarak yanıta bir nesne 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)

sağlanan valueile yeni ObjectResult bir örnek oluşturur.

Özellikler

ContentTypes

öğesini alır veya ayarlar MediaTypeCollection.

DeclaredType

Bildirilen 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şlemini zaman uyumlu olarak yürütür. Bu yöntem, bir eylem yönteminin sonucunu işlemek 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