ContentViewComponentResult Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IViewComponentResult which writes text when executed.
public ref class ContentViewComponentResult : Microsoft::AspNetCore::Mvc::IViewComponentResult
C#
public class ContentViewComponentResult : Microsoft.AspNetCore.Mvc.IViewComponentResult
type ContentViewComponentResult = class
interface IViewComponentResult
Public Class ContentViewComponentResult
Implements IViewComponentResult
- Inheritance
-
ContentViewComponentResult
- Implements
The provided content will be HTML-encoded when written. To write pre-encoded content, use an HtmlContentViewComponentResult.
Content |
Initializes a new ContentViewComponentResult. |
Content |
Gets the content. |
Execute(View |
Encodes and writes the Content. |
Execute |
Encodes and writes the Content. |
Tuote | Versiot |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |