ViewResultExtensions

Helper extensions for view results.

Namespace:
Inetdev.AspNetCore
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes
Inherits from:
System.Object

Methods

ToHtml

Renders the PartialViewResult and returns the produced HTML.

Signature:
public String ToHtml(result, httpContext)
Returns

The HTML rendered by the PartialViewResult.

Parameters
Name Type Summary
result PartialViewResult A PartialViewResult.
httpContext HttpContext The HttpContext.
Exceptions
Type Summary
ArgumentNullException

Thrown when result is null.

-or-

When httpContext is null.

ToHtml

Renders the ViewResult and returns the produced HTML.

Signature:
public String ToHtml(result, httpContext)
Returns

The HTML rendered by the ViewResult.

Parameters
Name Type Summary
result ViewResult A ViewResult.
httpContext HttpContext The HttpContext.
Exceptions
Type Summary
ArgumentNullException

Thrown when result is null.

-or-

When httpContext is null.

In this document