共用方式為


ContentViewComponentResult(String) 建構函式

定義

初始化新的 ContentViewComponentResult

public:
 ContentViewComponentResult(System::String ^ content);
public ContentViewComponentResult (string content);
new Microsoft.AspNetCore.Mvc.ViewComponents.ContentViewComponentResult : string -> Microsoft.AspNetCore.Mvc.ViewComponents.ContentViewComponentResult
Public Sub New (content As String)

參數

content
String

要寫入的內容。 內容會在寫入時進行 HTML 編碼。

適用於