Share via


CachedModelMetadata<TPrototypeCache>.ComputeTemplateHint Method

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.

Gets or sets a cached hint that suggests what template to use for this model.

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

Syntax

'Declaration
Protected Overridable Function ComputeTemplateHint As String
'Usage
Dim returnValue As String 

returnValue = Me.ComputeTemplateHint()
protected virtual string ComputeTemplateHint()
protected:
virtual String^ ComputeTemplateHint()
abstract ComputeTemplateHint : unit -> string  
override ComputeTemplateHint : unit -> string
protected function ComputeTemplateHint() : String

Return Value

Type: System.String
A cached hint that suggests what template to use for this model.

See Also

Reference

CachedModelMetadata<TPrototypeCache> Class

System.Web.Mvc Namespace