HtmlContentViewComponentResult Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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. |