TemplateRenderer Class¶
Constructors¶
-
TemplateRenderer
(Microsoft.AspNet.Mvc.Rendering.IViewEngine, Microsoft.AspNet.Mvc.ViewContext, Microsoft.AspNet.Mvc.ViewDataDictionary, System.String, System.Boolean)¶ Arguments: - viewEngine (Microsoft.AspNet.Mvc.Rendering.IViewEngine) –
- viewContext (Microsoft.AspNet.Mvc.ViewContext) –
- viewData (Microsoft.AspNet.Mvc.ViewDataDictionary) –
- templateName (System.String) –
- readOnly (System.Boolean) –
public TemplateRenderer(IViewEngine viewEngine, ViewContext viewContext, ViewDataDictionary viewData, string templateName, bool readOnly)
-
Methods¶
-
GetTypeNames
(Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata, System.Type)¶ Arguments: - modelMetadata (Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata) –
- fieldType (System.Type) –
Return type: System.Collections.Generic.IEnumerable{System.String}
public static IEnumerable<string> GetTypeNames(ModelMetadata modelMetadata, Type fieldType)
-
Microsoft.AspNet.Mvc.Rendering.Internal.TemplateRenderer.Render()
Return type: System.String public string Render()
-