C# Class Skimur.Web.Infrastructure.HtmlContentViewComponentResult

An IViewComponentResult which writes an IHtmlContent when executed.
The provided content will be HTML-encoded as specified when the content was created. To encoded and write text, use a ContentViewComponentResult.
Inheritance: IViewComponentResult
Afficher le fichier Open project: skimur/skimur

Méthodes publiques

Méthode Description
Execute ( ViewComponentContext context ) : void

Writes the EncodedContent.

ExecuteAsync ( ViewComponentContext context ) : System.Threading.Tasks.Task

Writes the EncodedContent.

HtmlContentViewComponentResult ( IHtmlContent encodedContent ) : Microsoft.AspNet.Html.Abstractions

Initializes a new HtmlContentViewComponentResult.

Method Details

Execute() public méthode

Writes the EncodedContent.
public Execute ( ViewComponentContext context ) : void
context ViewComponentContext The .
Résultat void

ExecuteAsync() public méthode

Writes the EncodedContent.
public ExecuteAsync ( ViewComponentContext context ) : System.Threading.Tasks.Task
context ViewComponentContext The .
Résultat System.Threading.Tasks.Task

HtmlContentViewComponentResult() public méthode

Initializes a new HtmlContentViewComponentResult.
public HtmlContentViewComponentResult ( IHtmlContent encodedContent ) : Microsoft.AspNet.Html.Abstractions
encodedContent IHtmlContent
Résultat Microsoft.AspNet.Html.Abstractions