Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TemplateInfo Class

 

Encapsulates information about the current template context.

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

System::Object
  System.Web.Mvc::TemplateInfo

public ref class TemplateInfo 

NameDescription
System_CAPS_pubmethodTemplateInfo()

Initializes a new instance of the TemplateInfo class.

NameDescription
System_CAPS_pubpropertyFormattedModelValue

Gets or sets the formatted model value.

System_CAPS_pubpropertyHtmlFieldPrefix

Gets or sets the HTML field prefix.

System_CAPS_pubpropertyTemplateDepth

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

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetFullHtmlFieldId(String^)

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

System_CAPS_pubmethodGetFullHtmlFieldName(String^)

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

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodVisited(ModelMetadata^)

Determines whether the template has been visited by the user.

The TemplateInfo class is used to retrieve metadata for templates or HTML helpers that you create. You can access the TemplateInfo instance from the ViewDataDictionary. The TemplateInfo instance can not be accessed outside a template.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2015 Microsoft