私はViewComponentを持っているときにビューを返すことができます。AspCore ViewComponent with StreamResult
が、これは今、私はビューのマークアップが含まれている、指定された文字列でViewContentを作成したいと思い、この
public class ContactViewComponent : ViewComponent
{
public IViewComponentResult Invoke()
{
return View();
}
}
ようなビューフォルダ内のファイルにバインドされています。
ビューコンポーネントでこれを行うための組み込み方法はありますか?