Skip to content

Commit bfceedb

Browse files
authored
DisplayFor: what if template file is not found (#38731)
1 parent 455a5ad commit bfceedb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelperOfT.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ public interface IHtmlHelper<TModel> : IHtmlHelper
4747

4848
/// <summary>
4949
/// Returns HTML markup for the <paramref name="expression"/>, using a display template, specified HTML field
50-
/// name, and additional view data. The template is found using the <paramref name="templateName"/> or the
51-
/// <paramref name="expression"/>'s <see cref="ModelBinding.ModelMetadata"/>.
50+
/// name, and additional view data. The template name is taken from the <paramref name="templateName"/> or the
51+
/// <paramref name="expression"/>’s <see cref="ModelBinding.ModelMetadata"/>.
52+
/// If the template file is not found, a default template will be used.
5253
/// </summary>
5354
/// <param name="expression">An expression to be evaluated against the current model.</param>
5455
/// <param name="templateName">The name of the template used to create the HTML markup.</param>

0 commit comments

Comments
 (0)