1 interface inheriting from IHtmlHelper
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\IHtmlHelperOfT.cs (1)
14
public interface IHtmlHelper<TModel> :
IHtmlHelper
2 implementations of IHtmlHelper
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
HtmlHelper.cs (1)
19
public class HtmlHelper :
IHtmlHelper
, IViewContextAware
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
DefaultEditorTemplatesTest.cs (1)
1354
private class StubbyHtmlHelper :
IHtmlHelper
, IViewContextAware
442 references to IHtmlHelper
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (1)
74
var viewFeaturesAssembly = typeof(
IHtmlHelper
).Assembly;
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
250
Assert.Contains(services, s => s.ServiceType == typeof(
IHtmlHelper
));
Microsoft.AspNetCore.Mvc.ViewFeatures (392)
DefaultDisplayTemplates.cs (9)
18
public static IHtmlContent BooleanTemplate(
IHtmlHelper
htmlHelper)
72
public static IHtmlContent CollectionTemplate(
IHtmlHelper
htmlHelper)
148
public static IHtmlContent DecimalTemplate(
IHtmlHelper
htmlHelper)
159
public static IHtmlContent EmailAddressTemplate(
IHtmlHelper
htmlHelper)
171
public static IHtmlContent HiddenInputTemplate(
IHtmlHelper
htmlHelper)
181
public static IHtmlContent HtmlTemplate(
IHtmlHelper
htmlHelper)
186
public static IHtmlContent ObjectTemplate(
IHtmlHelper
htmlHelper)
266
public static IHtmlContent StringTemplate(
IHtmlHelper
htmlHelper)
277
public static IHtmlContent UrlTemplate(
IHtmlHelper
htmlHelper)
DefaultEditorTemplates.cs (27)
23
public static IHtmlContent BooleanTemplate(
IHtmlHelper
htmlHelper)
36
private static IHtmlContent BooleanTemplateCheckbox(
IHtmlHelper
htmlHelper, bool value)
44
private static IHtmlContent BooleanTemplateDropDownList(
IHtmlHelper
htmlHelper, bool? value)
53
public static IHtmlContent CollectionTemplate(
IHtmlHelper
htmlHelper)
130
public static IHtmlContent DecimalTemplate(
IHtmlHelper
htmlHelper)
141
public static IHtmlContent HiddenInputTemplate(
IHtmlHelper
htmlHelper)
169
IHtmlHelper
htmlHelper,
218
public static IHtmlContent MultilineTemplate(
IHtmlHelper
htmlHelper)
228
public static IHtmlContent ObjectTemplate(
IHtmlHelper
htmlHelper)
312
public static IHtmlContent PasswordTemplate(
IHtmlHelper
htmlHelper)
334
public static IHtmlContent StringTemplate(
IHtmlHelper
htmlHelper)
339
public static IHtmlContent PhoneNumberInputTemplate(
IHtmlHelper
htmlHelper)
344
public static IHtmlContent UrlInputTemplate(
IHtmlHelper
htmlHelper)
349
public static IHtmlContent EmailAddressInputTemplate(
IHtmlHelper
htmlHelper)
354
public static IHtmlContent DateTimeOffsetTemplate(
IHtmlHelper
htmlHelper)
360
public static IHtmlContent DateTimeLocalInputTemplate(
IHtmlHelper
htmlHelper)
366
public static IHtmlContent DateInputTemplate(
IHtmlHelper
htmlHelper)
372
public static IHtmlContent TimeInputTemplate(
IHtmlHelper
htmlHelper)
378
public static IHtmlContent MonthInputTemplate(
IHtmlHelper
htmlHelper)
386
public static IHtmlContent WeekInputTemplate(
IHtmlHelper
htmlHelper)
391
public static IHtmlContent NumberInputTemplate(
IHtmlHelper
htmlHelper)
396
public static IHtmlContent FileInputTemplate(
IHtmlHelper
htmlHelper)
403
public static IHtmlContent FileCollectionInputTemplate(
IHtmlHelper
htmlHelper)
414
private static void ApplyRfc3339DateFormattingIfNeeded(
IHtmlHelper
htmlHelper, string format)
435
private static IHtmlContent GenerateTextBox(
IHtmlHelper
htmlHelper, string inputType = null)
440
private static IHtmlContent GenerateTextBox(
IHtmlHelper
htmlHelper, string inputType, object value)
448
private static IHtmlContent GenerateTextBox(
IHtmlHelper
htmlHelper, object value, object htmlAttributes)
DefaultHtmlGenerator.cs (8)
547
typeof(
IHtmlHelper
).FullName,
548
nameof(
IHtmlHelper
.Editor),
624
typeof(
IHtmlHelper
).FullName,
625
nameof(
IHtmlHelper
.Editor),
726
typeof(
IHtmlHelper
).FullName,
727
nameof(
IHtmlHelper
.Editor),
1152
typeof(
IHtmlHelper
).FullName,
1153
nameof(
IHtmlHelper
.Editor),
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
156
services.TryAddTransient<
IHtmlHelper
, HtmlHelper>();
FormContext.cs (1)
27
/// <see cref="Rendering.
IHtmlHelper
"/> implementation or extension method.
HtmlHelper.cs (1)
17
/// Default implementation of <see cref="
IHtmlHelper
"/>.
HtmlHelperOptions.cs (3)
20
/// <see cref="
IHtmlHelper
.Editor" /> and <see cref="IHtmlHelper{TModel}.EditorFor" /> render date and time
46
/// <see cref="
IHtmlHelper
.ValidationMessage"/> and other overloads.
52
/// <see cref="
IHtmlHelper
.ValidationSummary"/> and other overloads.
IHtmlGenerator.cs (1)
10
/// Contract for a service supporting <see cref="
IHtmlHelper
"/> and <c>ITagHelper</c> implementations.
Rendering\HtmlHelperComponentExtensions.cs (6)
21
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/>.</param>
24
public static Task<IHtmlContent> RenderComponentAsync<TComponent>(this
IHtmlHelper
htmlHelper, RenderMode renderMode) where TComponent : IComponent
30
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/>.</param>
36
this
IHtmlHelper
htmlHelper,
44
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/>.</param>
50
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperDisplayExtensions.cs (23)
10
/// Display-related extensions for <see cref="
IHtmlHelper
"/> and <see cref="IHtmlHelper{TModel}"/>.
18
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
38
public static IHtmlContent Display(this
IHtmlHelper
htmlHelper, string expression)
50
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
76
this
IHtmlHelper
htmlHelper,
94
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
116
this
IHtmlHelper
htmlHelper,
130
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
157
this
IHtmlHelper
htmlHelper,
176
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
202
this
IHtmlHelper
htmlHelper,
408
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
420
public static IHtmlContent DisplayForModel(this
IHtmlHelper
htmlHelper)
435
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
452
public static IHtmlContent DisplayForModel(this
IHtmlHelper
htmlHelper, object additionalViewData)
467
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
480
public static IHtmlContent DisplayForModel(this
IHtmlHelper
htmlHelper, string templateName)
496
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
515
this
IHtmlHelper
htmlHelper,
533
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
551
this
IHtmlHelper
htmlHelper,
569
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
592
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperDisplayNameExtensions.cs (3)
9
/// DisplayName-related extensions for <see cref="
IHtmlHelper
"/> and <see cref="IHtmlHelper{TModel}"/>.
16
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
18
public static string DisplayNameForModel(this
IHtmlHelper
htmlHelper)
Rendering\HtmlHelperEditorExtensions.cs (23)
10
/// Editor-related extensions for <see cref="
IHtmlHelper
"/> and <see cref="IHtmlHelper{TModel}"/>.
18
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
38
public static IHtmlContent Editor(this
IHtmlHelper
htmlHelper, string expression)
50
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
76
this
IHtmlHelper
htmlHelper,
94
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
115
public static IHtmlContent Editor(this
IHtmlHelper
htmlHelper, string expression, string templateName)
127
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
154
this
IHtmlHelper
htmlHelper,
173
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
199
this
IHtmlHelper
htmlHelper,
393
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
405
public static IHtmlContent EditorForModel(this
IHtmlHelper
htmlHelper)
420
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
437
public static IHtmlContent EditorForModel(this
IHtmlHelper
htmlHelper, object additionalViewData)
452
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
465
public static IHtmlContent EditorForModel(this
IHtmlHelper
htmlHelper, string templateName)
481
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
500
this
IHtmlHelper
htmlHelper,
518
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
536
this
IHtmlHelper
htmlHelper,
554
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
577
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperFormExtensions.cs (39)
7
/// Form-related extensions for <see cref="
IHtmlHelper
"/>.
15
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
22
public static MvcForm BeginForm(this
IHtmlHelper
htmlHelper)
40
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
52
public static MvcForm BeginForm(this
IHtmlHelper
htmlHelper, bool? antiforgery)
70
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
78
public static MvcForm BeginForm(this
IHtmlHelper
htmlHelper, FormMethod method)
95
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
109
this
IHtmlHelper
htmlHelper,
128
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
148
this
IHtmlHelper
htmlHelper,
168
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
182
public static MvcForm BeginForm(this
IHtmlHelper
htmlHelper, object routeValues)
199
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
209
this
IHtmlHelper
htmlHelper,
228
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
245
this
IHtmlHelper
htmlHelper,
265
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
276
this
IHtmlHelper
htmlHelper,
296
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
314
this
IHtmlHelper
htmlHelper,
335
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
351
this
IHtmlHelper
htmlHelper,
372
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
386
public static MvcForm BeginRouteForm(this
IHtmlHelper
htmlHelper, object routeValues)
402
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
421
public static MvcForm BeginRouteForm(this
IHtmlHelper
htmlHelper, object routeValues, bool? antiforgery)
437
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
445
public static MvcForm BeginRouteForm(this
IHtmlHelper
htmlHelper, string routeName)
461
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
474
public static MvcForm BeginRouteForm(this
IHtmlHelper
htmlHelper, string routeName, bool? antiforgery)
490
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
506
this
IHtmlHelper
htmlHelper,
524
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
534
this
IHtmlHelper
htmlHelper,
552
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
569
this
IHtmlHelper
htmlHelper,
588
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
603
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperInputExtensions.cs (69)
10
/// Input-related extensions for <see cref="
IHtmlHelper
"/> and <see cref="IHtmlHelper{TModel}"/>.
19
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
21
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
23
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
31
public static IHtmlContent CheckBox(this
IHtmlHelper
htmlHelper, string expression)
44
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
46
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
48
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
58
this
IHtmlHelper
htmlHelper,
73
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
75
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
77
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
91
this
IHtmlHelper
htmlHelper,
130
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
132
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
134
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
142
public static IHtmlContent Hidden(this
IHtmlHelper
htmlHelper, string expression)
154
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
156
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
158
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
168
this
IHtmlHelper
htmlHelper,
208
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
216
public static IHtmlContent Password(this
IHtmlHelper
htmlHelper, string expression)
227
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
237
this
IHtmlHelper
htmlHelper,
277
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
279
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
281
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
291
this
IHtmlHelper
htmlHelper,
309
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
311
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
313
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
331
this
IHtmlHelper
htmlHelper,
349
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
351
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
353
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
370
this
IHtmlHelper
htmlHelper,
417
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
419
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
421
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
429
public static IHtmlContent TextBox(this
IHtmlHelper
htmlHelper, string expression)
441
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
443
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
445
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
455
this
IHtmlHelper
htmlHelper,
469
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
471
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
473
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
487
this
IHtmlHelper
htmlHelper,
502
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name,
505
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
507
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
522
this
IHtmlHelper
htmlHelper,
629
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
631
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
633
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
642
this
IHtmlHelper
htmlHelper,
654
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
656
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
658
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
672
this
IHtmlHelper
htmlHelper,
686
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
688
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
690
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
700
this
IHtmlHelper
htmlHelper,
714
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
716
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
718
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
733
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperLabelExtensions.cs (13)
10
/// Label-related extensions for <see cref="
IHtmlHelper
"/> and <see cref="IHtmlHelper{TModel}"/>.
17
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
20
public static IHtmlContent Label(this
IHtmlHelper
htmlHelper, string expression)
30
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
34
public static IHtmlContent Label(this
IHtmlHelper
htmlHelper, string expression, string labelText)
106
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
108
public static IHtmlContent LabelForModel(this
IHtmlHelper
htmlHelper)
118
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
121
public static IHtmlContent LabelForModel(this
IHtmlHelper
htmlHelper, string labelText)
131
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
138
public static IHtmlContent LabelForModel(this
IHtmlHelper
htmlHelper, object htmlAttributes)
148
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
157
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperLinkExtensions.cs (23)
9
/// Link-related extensions for <see cref="
IHtmlHelper
"/>.
16
/// <param name="helper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
21
this
IHtmlHelper
helper,
42
/// <param name="helper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
54
this
IHtmlHelper
helper,
76
/// <param name="helper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
93
this
IHtmlHelper
helper,
116
/// <param name="helper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
122
this
IHtmlHelper
helper,
144
/// <param name="helper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
157
this
IHtmlHelper
helper,
180
/// <param name="helper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
198
this
IHtmlHelper
helper,
222
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
233
this
IHtmlHelper
htmlHelper,
253
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
258
this
IHtmlHelper
htmlHelper,
278
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
290
this
IHtmlHelper
htmlHelper,
311
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
327
this
IHtmlHelper
htmlHelper,
348
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
365
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperNameExtensions.cs (5)
7
/// Name-related extensions for <see cref="
IHtmlHelper
"/>.
16
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
18
public static string NameForModel(this
IHtmlHelper
htmlHelper)
28
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
30
public static string IdForModel(this
IHtmlHelper
htmlHelper)
Rendering\HtmlHelperPartialExtensions.cs (33)
10
/// PartialView-related extensions for <see cref="
IHtmlHelper
"/>.
17
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
26
this
IHtmlHelper
htmlHelper,
38
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
48
this
IHtmlHelper
htmlHelper,
61
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
71
this
IHtmlHelper
htmlHelper,
84
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
93
/// <see cref="
IHtmlHelper
.PartialAsync(string, object, ViewDataDictionary)"/>
95
public static IHtmlContent Partial(this
IHtmlHelper
htmlHelper, string partialViewName)
103
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
113
/// <see cref="
IHtmlHelper
.PartialAsync(string, object, ViewDataDictionary)"/>
116
this
IHtmlHelper
htmlHelper,
126
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
136
/// <see cref="
IHtmlHelper
.PartialAsync(string, object, ViewDataDictionary)"/>
138
public static IHtmlContent Partial(this
IHtmlHelper
htmlHelper, string partialViewName, object model)
146
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
157
/// <see cref="
IHtmlHelper
.PartialAsync(string, object, ViewDataDictionary)"/>
160
this
IHtmlHelper
htmlHelper,
175
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
182
public static void RenderPartial(this
IHtmlHelper
htmlHelper, string partialViewName)
190
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
199
this
IHtmlHelper
htmlHelper,
209
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
217
public static void RenderPartial(this
IHtmlHelper
htmlHelper, string partialViewName, object model)
225
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
235
this
IHtmlHelper
htmlHelper,
250
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
259
this
IHtmlHelper
htmlHelper,
271
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
281
this
IHtmlHelper
htmlHelper,
294
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
304
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperSelectExtensions.cs (41)
10
/// Select-related extensions for <see cref="
IHtmlHelper
"/> and <see cref="IHtmlHelper{TModel}"/>.
16
/// <option> elements based on the <see cref="
IHtmlHelper
.ViewData"/> entry with full name. Adds a
21
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
23
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
33
/// The <see cref="
IHtmlHelper
.ViewData"/> entry with full name must be a non-<c>null</c> collection of
37
public static IHtmlContent DropDownList(this
IHtmlHelper
htmlHelper, string expression)
46
/// <option> elements based on <paramref name="optionLabel"/> and the <see cref="
IHtmlHelper
.ViewData"/>
52
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
54
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
67
/// The <see cref="
IHtmlHelper
.ViewData"/> entry with full name must be a non-<c>null</c> collection of
72
this
IHtmlHelper
htmlHelper,
91
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name (unless used instead of
94
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
96
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
100
/// <optgroup> and <option> elements. If <c>null</c>, uses the <see cref="
IHtmlHelper
.ViewData"/>
110
this
IHtmlHelper
htmlHelper,
125
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name (unless used instead of
128
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
130
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
134
/// <optgroup> and <option> elements. If <c>null</c>, uses the <see cref="
IHtmlHelper
.ViewData"/>
148
this
IHtmlHelper
htmlHelper,
164
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name (unless used instead of
167
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
169
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
173
/// <optgroup> and <option> elements. If <c>null</c>, uses the <see cref="
IHtmlHelper
.ViewData"/>
186
this
IHtmlHelper
htmlHelper,
209
/// <optgroup> and <option> elements. If <c>null</c>, uses the <see cref="
IHtmlHelper
.ViewData"/>
244
/// <optgroup> and <option> elements. If <c>null</c>, uses the <see cref="
IHtmlHelper
.ViewData"/>
288
/// <optgroup> and <option> elements. If <c>null</c>, uses the <see cref="
IHtmlHelper
.ViewData"/>
316
/// <option> elements based on the <see cref="
IHtmlHelper
.ViewData"/> entry with full name. Adds a
321
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
323
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
333
/// The <see cref="
IHtmlHelper
.ViewData"/> entry with full name must be a non-<c>null</c> collection of
337
public static IHtmlContent ListBox(this
IHtmlHelper
htmlHelper, string expression)
350
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name (unless used instead of
353
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
355
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
359
/// <optgroup> and <option> elements. If <c>null</c>, uses the <see cref="
IHtmlHelper
.ViewData"/>
369
this
IHtmlHelper
htmlHelper,
385
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
391
/// <optgroup> and <option> elements. If <c>null</c>, uses the <see cref="
IHtmlHelper
.ViewData"/>
Rendering\HtmlHelperValidationExtensions.cs (33)
10
/// Validation-related extensions for <see cref="
IHtmlHelper
"/> and <see cref="IHtmlHelper{TModel}"/>.
18
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
30
this
IHtmlHelper
htmlHelper,
42
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
55
this
IHtmlHelper
htmlHelper,
68
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
86
this
IHtmlHelper
htmlHelper,
99
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
116
this
IHtmlHelper
htmlHelper,
130
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
149
this
IHtmlHelper
htmlHelper,
163
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
190
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
219
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
255
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
289
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
294
public static IHtmlContent ValidationSummary(this
IHtmlHelper
htmlHelper)
309
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
317
public static IHtmlContent ValidationSummary(this
IHtmlHelper
htmlHelper, bool excludePropertyErrors)
332
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
340
public static IHtmlContent ValidationSummary(this
IHtmlHelper
htmlHelper, string message)
355
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
366
public static IHtmlContent ValidationSummary(this
IHtmlHelper
htmlHelper, string message, string tag)
381
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
393
this
IHtmlHelper
htmlHelper,
410
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
424
this
IHtmlHelper
htmlHelper,
441
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
458
this
IHtmlHelper
htmlHelper,
476
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
491
this
IHtmlHelper
htmlHelper,
509
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
526
this
IHtmlHelper
htmlHelper,
Rendering\HtmlHelperValueExtensions.cs (13)
9
/// Value-related extensions for <see cref="
IHtmlHelper
"/> and <see cref="IHtmlHelper{TModel}"/>.
17
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
19
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
21
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
27
public static string Value(this
IHtmlHelper
htmlHelper, string expression)
63
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
65
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
67
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
72
public static string ValueForModel(this
IHtmlHelper
htmlHelper)
83
/// the <see cref="
IHtmlHelper
.ViewData"/> entry with full name, or
85
/// See <see cref="
IHtmlHelper
.Name"/> for more information about a "full name".
87
/// <param name="htmlHelper">The <see cref="
IHtmlHelper
"/> instance this method extends.</param>
97
public static string ValueForModel(this
IHtmlHelper
htmlHelper, string format)
Rendering\IHtmlHelper.cs (1)
29
/// Gets the metadata provider. Intended for use in <see cref="
IHtmlHelper
"/> extension methods.
Rendering\IHtmlHelperOfT.cs (5)
11
/// An <see cref="
IHtmlHelper
"/> for Linq expressions.
182
/// <inheritdoc cref="
IHtmlHelper
.Encode(object)"/>
185
/// <inheritdoc cref="
IHtmlHelper
.Encode(string)"/>
331
/// <inheritdoc cref="
IHtmlHelper
.Raw(object)"/>
334
/// <inheritdoc cref="
IHtmlHelper
.Raw(string)"/>
Rendering\ViewContext.cs (3)
137
/// <see cref="
IHtmlHelper
.Editor" /> and <see cref="IHtmlHelper{TModel}.EditorFor" /> render date and time
143
/// Element name used to wrap a top-level message generated by <see cref="
IHtmlHelper
.ValidationSummary"/> and
149
/// Element name used to wrap a top-level message generated by <see cref="
IHtmlHelper
.ValidationMessage"/> and
TemplateRenderer.cs (8)
22
private static readonly Dictionary<string, Func<
IHtmlHelper
, IHtmlContent>> _defaultDisplayActions =
23
new Dictionary<string, Func<
IHtmlHelper
, IHtmlContent>>(StringComparer.OrdinalIgnoreCase)
37
private static readonly Dictionary<string, Func<
IHtmlHelper
, IHtmlContent>> _defaultEditorActions =
38
new Dictionary<string, Func<
IHtmlHelper
, IHtmlContent>>(StringComparer.OrdinalIgnoreCase)
140
private Dictionary<string, Func<
IHtmlHelper
, IHtmlContent>> GetDefaultActions()
238
private static
IHtmlHelper
MakeHtmlHelper(ViewContext viewContext, ViewDataDictionary viewData)
240
var
newHelper = viewContext.HttpContext.RequestServices.GetRequiredService<
IHtmlHelper
>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (46)
DefaultEditorTemplatesTest.cs (3)
255
var helperMock = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
1356
private readonly
IHtmlHelper
_innerHelper;
1358
public StubbyHtmlHelper(
IHtmlHelper
innerHelper)
Rendering\DefaultTemplatesUtilities.cs (9)
175
Func<
IHtmlHelper
,
IHtmlHelper
> innerHelperWrapper)
202
Func<
IHtmlHelper
,
IHtmlHelper
> innerHelperWrapper)
224
Func<
IHtmlHelper
,
IHtmlHelper
> innerHelperWrapper,
256
var
innerHelper = (
IHtmlHelper
)new HtmlHelper(
328
public static string FormatOutput(
IHtmlHelper
helper, object model)
Rendering\HtmlHelperDisplayTextTest.cs (1)
10
/// Test the <see cref="
IHtmlHelper
.DisplayText"/> and
Rendering\HtmlHelperFormExtensionsTest.cs (3)
11
/// Tests the <see cref="
IHtmlHelper
"/>'s <see cref="
IHtmlHelper
.BeginForm"/> and
12
/// <see cref="
IHtmlHelper
.BeginRouteForm"/> methods.
Rendering\HtmlHelperFormTest.cs (3)
15
/// Tests the <see cref="
IHtmlHelper
"/>'s <see cref="
IHtmlHelper
.BeginForm"/> and
16
/// <see cref="
IHtmlHelper
.BeginRouteForm"/>methods.
Rendering\HtmlHelperPartialExtensionsTest.cs (24)
15
public static TheoryData<Func<
IHtmlHelper
, IHtmlContent>, object, ViewDataDictionary> PartialExtensionMethods
21
return new TheoryData<Func<
IHtmlHelper
, IHtmlContent>, object, ViewDataDictionary>
34
Func<
IHtmlHelper
, IHtmlContent> partialMethod,
40
var helper = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
67
Func<
IHtmlHelper
, IHtmlContent> partialMethod,
73
var helper = new Mock<
IHtmlHelper
>();
90
public static TheoryData<Func<
IHtmlHelper
, Task<IHtmlContent>>, object, ViewDataDictionary> PartialAsyncExtensionMethods
96
return new TheoryData<Func<
IHtmlHelper
, Task<IHtmlContent>>, object, ViewDataDictionary>
108
Func<
IHtmlHelper
, Task<IHtmlContent>> partialAsyncMethod,
114
var helper = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
139
public static TheoryData<Action<
IHtmlHelper
>, object, ViewDataDictionary> RenderPartialExtensionMethods
145
return new TheoryData<Action<
IHtmlHelper
>, object, ViewDataDictionary>
158
Action<
IHtmlHelper
> partialMethod,
164
var helper = new Mock<
IHtmlHelper
>();
183
Func<
IHtmlHelper
, Task> renderPartialAsyncMethod,
189
var helper = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
213
public static TheoryData<Func<
IHtmlHelper
, Task>, object, ViewDataDictionary> RenderPartialAsyncExtensionMethods
219
return new TheoryData<Func<
IHtmlHelper
, Task>, object, ViewDataDictionary>
231
Func<
IHtmlHelper
, Task> renderPartialAsyncMethod,
237
var helper = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
270
var helper = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
291
var helper = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
315
var helper = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
337
var helper = new Mock<
IHtmlHelper
>(MockBehavior.Strict);
Rendering\HtmlHelperTest.cs (2)
175
IHtmlHelper
helper = DefaultTemplatesUtilities.GetHtmlHelper();
244
IHtmlHelper
helper = DefaultTemplatesUtilities.GetHtmlHelper();
Rendering\HtmlHelperValueTest.cs (1)
11
/// Test the <see cref="
IHtmlHelper
.Value" /> and <see cref="IHtmlHelper{TModel}.ValueFor"/> methods.
TagHelpersWebSite (2)
MyHtmlContent.cs (2)
12
private
IHtmlHelper
Html { get; }
14
public MyHtmlContent(
IHtmlHelper
html)