ContentResult Sınıf

Tanım

ActionResultYürütülürken içeriği olan bir yanıt üretir.

public ref class ContentResult : Microsoft::AspNetCore::Mvc::ActionResult
public ref class ContentResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::Infrastructure::IStatusCodeActionResult
public class ContentResult : Microsoft.AspNetCore.Mvc.ActionResult
public class ContentResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
type ContentResult = class
    inherit ActionResult
type ContentResult = class
    inherit ActionResult
    interface IStatusCodeActionResult
    interface IActionResult
type ContentResult = class
    inherit ActionResult
    interface IActionResult
    interface IStatusCodeActionResult
Public Class ContentResult
Inherits ActionResult
Public Class ContentResult
Inherits ActionResult
Implements IActionResult, IStatusCodeActionResult
Devralma
ContentResult
Uygulamalar

Oluşturucular

ContentResult()

Özellikler

Content

Yanıtın gövdesini temsil eden içeriği alır veya ayarlayın.

ContentType

Yanıtın Content-Type üst bilgilerini alır veya ayarlar.

StatusCode

HTTP durum kodunu alır veya ayarlar.

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.

Şunlara uygulanır