HtmlContentViewComponentResult(IHtmlContent) 构造函数

定义

初始化新的 HtmlContentViewComponentResult

public:
 HtmlContentViewComponentResult(Microsoft::AspNetCore::Html::IHtmlContent ^ encodedContent);
public HtmlContentViewComponentResult (Microsoft.AspNetCore.Html.IHtmlContent encodedContent);
new Microsoft.AspNetCore.Mvc.ViewComponents.HtmlContentViewComponentResult : Microsoft.AspNetCore.Html.IHtmlContent -> Microsoft.AspNetCore.Mvc.ViewComponents.HtmlContentViewComponentResult
Public Sub New (encodedContent As IHtmlContent)

参数

encodedContent
IHtmlContent

适用于