Click or drag to resize

HtmlHelperRenderResource(String, Type, Object) Method

Renders a Razor view from an embedded resource.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public IEncodedString RenderResource(
	string resourceName,
	Type modelType = null,
	Object model = null
)
View Source

Parameters

resourceName  String
Embedded resource name.
modelType  Type  (Optional)
Type of model.
model  Object  (Optional)
Model instance.

Return Value

IEncodedString
Rendered resource as an encoded string.
See Also