SubModel

TemplateContext<TObject>.SubModel<TSubModel> method

Creates a child template context.

public TemplateContext<TSubModel> SubModel<TSubModel>(TSubModel subModel)
ParameterTypeDescription
subModelTSubModelChild model object.

Return Value

New template context with given model and parent’s output collection and global storage.

See Also