Aracılığıyla paylaş


ContentViewComponentResult Sınıf

Tanım

IViewComponentResult Yürütülürken metin yazan bir.

public ref class ContentViewComponentResult : Microsoft::AspNetCore::Mvc::IViewComponentResult
public class ContentViewComponentResult : Microsoft.AspNetCore.Mvc.IViewComponentResult
type ContentViewComponentResult = class
    interface IViewComponentResult
Public Class ContentViewComponentResult
Implements IViewComponentResult
Devralma
ContentViewComponentResult
Uygulamalar

Açıklamalar

Sağlanan içerik yazıldığında HTML ile kodlanır. Önceden kodlanmış içerik yazmak için kullanın HtmlContentViewComponentResult.

Oluşturucular

ContentViewComponentResult(String)

Yeni ContentViewComponentResultbir başlatır.

Özellikler

Content

İçeriği alır.

Yöntemler

Execute(ViewComponentContext)

kodunu kodlar ve yazar Content.

ExecuteAsync(ViewComponentContext)

kodunu kodlar ve yazar Content.

Şunlara uygulanır