Click or drag to resize

ViewModelTemplateTViewModelRenderModelT Method

Renders a view model which implements IViewModelTemplatePath.

Namespace:  Dynamicweb.Rendering
Assembly:  Dynamicweb (in Dynamicweb.dll) Version: 9.10.0
Syntax
public string RenderModel<T>(
	T model
)
where T : ViewModelBase, IViewModelTemplatePath

Parameters

model
Type: T

Type Parameters

T
View model which implements ViewModelBase and IViewModelTemplatePath.

Return Value

Type: String
A string with the rendered output of the given model and the template associated with that model.
See Also