Share via


TemplateInfo Class

Definition

Encapsulates information about the current template context.

public class TemplateInfo
type TemplateInfo = class
Public Class TemplateInfo
Inheritance
TemplateInfo

Constructors

TemplateInfo()

Initializes a new instance of the TemplateInfo class.

Properties

FormattedModelValue

Gets or sets the formatted model value.

HtmlFieldPrefix

Gets or sets the HTML field prefix.

TemplateDepth

Contains the number of objects that were visited by the user.

Methods

GetFullHtmlFieldId(String)

Retrieves the full DOM ID of a field using the specified HTML name attribute.

GetFullHtmlFieldName(String)

Retrieves the fully qualified name (including a prefix) for a field using the specified HTML name attribute.

Visited(ModelMetadata)

Determines whether the template has been visited by the user.

Applies to