ViewDataDictionary.TemplateInfo Property


Gets or sets an object that encapsulates information about the current template context.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public TemplateInfo TemplateInfo { get; set; }

Property Value

Type: System.Web.Mvc.TemplateInfo

An object that contains information about the current template.

A TemplateInfo object contains information about the template context, such as the model type, a HTML field prefix, and the formatted model value.

Return to top