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
Datei anzeigen Open project: skimur/skimur

Public Methods

Method 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 method

Writes the EncodedContent.
public Execute ( ViewComponentContext context ) : void
context ViewComponentContext The .
return void

ExecuteAsync() public method

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

HtmlContentViewComponentResult() public method

Initializes a new HtmlContentViewComponentResult.
public HtmlContentViewComponentResult ( IHtmlContent encodedContent ) : Microsoft.AspNet.Html.Abstractions
encodedContent IHtmlContent
return Microsoft.AspNet.Html.Abstractions