Share via


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)

Syntax

'Declaration
Public Property TemplateInfo As TemplateInfo
    Get
    Set
public TemplateInfo TemplateInfo { get; set; }
public:
property TemplateInfo^ TemplateInfo {
    TemplateInfo^ get ();
    void set (TemplateInfo^ value);
}

Property Value

Type: System.Web.Mvc.TemplateInfo
An object that contains information about the current template.

Remarks

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

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace