共用方式為


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

適用於