Aracılığıyla paylaş


HtmlContentViewComponentResult Sınıf

Tanım

Yürütürken IViewComponentResult yazan bir IHtmlContent .

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

Açıklamalar

Sağlanan içerik, içerik oluşturulduğunda belirtildiği gibi HTML ile kodlanır. Metin kodlamak ve yazmak için kullanın ContentViewComponentResult.

Oluşturucular

HtmlContentViewComponentResult(IHtmlContent)

Yeni HtmlContentViewComponentResultbir başlatır.

Özellikler

EncodedContent

Kodlanmış içeriği alır.

Yöntemler

Execute(ViewComponentContext)

EncodedContentyazar.

ExecuteAsync(ViewComponentContext)

EncodedContentyazar.

Şunlara uygulanır