2 interfaces inheriting from IHtmlContent
Microsoft.AspNetCore.Html.Abstractions (2)
IHtmlAsyncContent.cs (1)
9
public interface IHtmlAsyncContent :
IHtmlContent
IHtmlContentContainer.cs (1)
10
public interface IHtmlContentContainer :
IHtmlContent
13 implementations of IHtmlContent
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (1)
201
internal sealed class ComponentStateHtmlContent :
IHtmlContent
Microsoft.AspNetCore.Html.Abstractions (2)
HtmlFormattableString.cs (1)
17
public class HtmlFormattableString :
IHtmlContent
HtmlString.cs (1)
11
public class HtmlString :
IHtmlContent
Microsoft.AspNetCore.Mvc.Localization (1)
LocalizedHtmlString.cs (1)
12
public class LocalizedHtmlString :
IHtmlContent
Microsoft.AspNetCore.Mvc.Razor (2)
HelperResult.cs (1)
12
public class HelperResult :
IHtmlContent
TagHelpers\UrlResolutionTagHelper.cs (1)
343
private sealed class EncodeFirstSegmentContent :
IHtmlContent
Microsoft.AspNetCore.Mvc.TagHelpers (2)
CacheTagHelper.cs (1)
242
private sealed class CharBufferHtmlContent :
IHtmlContent
TagHelperOutputExtensions.cs (1)
340
private sealed class ClassAttributeHtmlContent :
IHtmlContent
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
AntiforgeryExtensions.cs (1)
40
private sealed class InputContent :
IHtmlContent
Buffers\ViewBuffer.cs (1)
368
private sealed class EncodingWrapper :
IHtmlContent
Rendering\TagBuilder.cs (2)
21
public class TagBuilder :
IHtmlContent
399
private sealed class RenderTagHtmlContent :
IHtmlContent
StringHtmlContent.cs (1)
16
public class StringHtmlContent :
IHtmlContent
581 references to IHtmlContent
Microsoft.AspNetCore.Components.Endpoints (4)
DependencyInjection\IComponentPrerenderer.cs (1)
36
ValueTask<
IHtmlContent
> PrerenderPersistedStateAsync(
RazorComponentEndpointInvoker.cs (1)
179
var
componentStateHtmlContent = await _renderer.PrerenderPersistedStateAsync(context);
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (2)
19
public async ValueTask<
IHtmlContent
> PrerenderPersistedStateAsync(HttpContext httpContext)
111
public async ValueTask<
IHtmlContent
> PrerenderPersistedStateAsync(HttpContext httpContext, PersistedStateSerializationMode serializationMode)
Microsoft.AspNetCore.Html.Abstractions (17)
HtmlContentBuilder.cs (4)
71
public IHtmlContentBuilder AppendHtml(
IHtmlContent
? htmlContent)
122
destination.AppendHtml((
IHtmlContent
)entry);
149
destination.AppendHtml((
IHtmlContent
)entry);
175
((
IHtmlContent
)entry).WriteTo(writer, encoder);
HtmlContentBuilderExtensions.cs (6)
99
/// Appends an <see cref="Environment.NewLine"/> after appending the <see cref="
IHtmlContent
"/> value.
102
/// <param name="content">The <see cref="
IHtmlContent
"/> to append.</param>
104
public static IHtmlContentBuilder AppendLine(this IHtmlContentBuilder builder,
IHtmlContent
content)
146
/// Sets the content to the <see cref="
IHtmlContent
"/> value.
149
/// <param name="content">The <see cref="
IHtmlContent
"/> value that replaces the content.</param>
151
public static IHtmlContentBuilder SetHtmlContent(this IHtmlContentBuilder builder,
IHtmlContent
content)
HtmlFormattableString.cs (2)
12
/// An <see cref="
IHtmlContent
"/> implementation of composite string formatting
105
if (arg is
IHtmlContent
htmlContent)
HtmlString.cs (1)
9
/// An <see cref="
IHtmlContent
"/> implementation that wraps an HTML encoded <see cref="string"/>.
IHtmlContentBuilder.cs (3)
12
/// Appends an <see cref="
IHtmlContent
"/> instance.
14
/// <param name="content">The <see cref="
IHtmlContent
"/> to append.</param>
16
IHtmlContentBuilder AppendHtml(
IHtmlContent
content);
IHtmlContentContainer.cs (1)
7
/// Defines a contract for <see cref="
IHtmlContent
"/> instances made up of several components which
Microsoft.AspNetCore.Mvc.Localization (1)
LocalizedHtmlString.cs (1)
10
/// An <see cref="
IHtmlContent
"/> with localized content.
Microsoft.AspNetCore.Mvc.Razor (16)
IRazorPage.cs (1)
22
IHtmlContent
? BodyContent { get; set; }
RazorPage.cs (5)
29
protected virtual
IHtmlContent
RenderBody()
84
/// <returns>An empty <see cref="
IHtmlContent
"/>.</returns>
100
/// <returns>An empty <see cref="
IHtmlContent
"/>.</returns>
119
/// A <see cref="Task{HtmlString}"/> that on completion returns an empty <see cref="
IHtmlContent
"/>.
138
/// A <see cref="Task{HtmlString}"/> that on completion returns an empty <see cref="
IHtmlContent
"/>.
RazorPageBase.cs (7)
40
private
IHtmlContent
? _bodyContent;
94
public
IHtmlContent
? BodyContent
121
/// handles non-<see cref="
IHtmlContent
"/> C# expressions.
212
/// non-<see cref="
IHtmlContent
"/> C# expressions. If <c>null</c>, does not change <see cref="HtmlEncoder"/>.
405
if (value is
IHtmlContent
htmlContent)
676
/// completion returns an empty <see cref="
IHtmlContent
"/>.</returns>
708
/// <returns>An empty <see cref="
IHtmlContent
"/>.</returns>
TagHelpers\UrlResolutionTagHelper.cs (3)
174
if (attribute.Value is
IHtmlContent
htmlContent)
191
if (TryResolveUrl(stringValue, resolvedUrl: out
IHtmlContent
? resolvedUrl))
243
protected bool TryResolveUrl([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string url, [NotNullWhen(true)] out
IHtmlContent
? resolvedUrl)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\RazorPageAdapter.cs (1)
39
public
IHtmlContent
? BodyContent
Microsoft.AspNetCore.Mvc.TagHelpers (20)
Cache\DistributedCacheTagHelperService.cs (5)
37
private readonly ConcurrentDictionary<CacheTagKey, Task<
IHtmlContent
>> _workers;
61
_workers = new ConcurrentDictionary<CacheTagKey, Task<
IHtmlContent
>>();
65
public async Task<
IHtmlContent
> ProcessContentAsync(TagHelperOutput output, CacheTagKey key, DistributedCacheEntryOptions options)
67
IHtmlContent
content = null;
77
var tcs = new TaskCompletionSource<
IHtmlContent
>(creationOptions: TaskCreationOptions.RunContinuationsAsynchronously);
Cache\IDistributedCacheTagHelperService.cs (1)
23
Task<
IHtmlContent
> ProcessContentAsync(TagHelperOutput output, CacheTagKey key, DistributedCacheEntryOptions options);
CacheTagHelper.cs (7)
66
IHtmlContent
content;
70
if (MemoryCache.TryGetValue(cacheKey, out Task<
IHtmlContent
> cachedResult))
90
private async Task<
IHtmlContent
> CreateCacheEntry(CacheTagKey cacheKey, TagHelperOutput output)
97
var tcs = new TaskCompletionSource<
IHtmlContent
>(creationOptions: TaskCreationOptions.RunContinuationsAsynchronously);
104
IHtmlContent
content;
152
private long GetSize(
IHtmlContent
content)
204
private async Task<
IHtmlContent
> ProcessContentAsync(TagHelperOutput output)
DistributedCacheTagHelper.cs (1)
58
IHtmlContent
content;
FormTagHelper.cs (1)
313
var
antiforgeryTag = Generator.GenerateAntiforgery(ViewContext);
LinkTagHelper.cs (1)
413
if (attributeValue is
IHtmlContent
contentValue)
PersistComponentStateTagHelper.cs (1)
55
var
content = await componentPrerenderer.PrerenderPersistedStateAsync(ViewContext.HttpContext, serializationMode);
SelectTagHelper.cs (1)
128
var
options = Generator.GenerateGroupsAndOptions(optionLabel: null, selectList: items);
TagHelperOutputExtensions.cs (2)
270
case
IHtmlContent
htmlContent:
360
if (_left is
IHtmlContent
htmlContent)
Microsoft.AspNetCore.Mvc.ViewFeatures (494)
AntiforgeryExtensions.cs (2)
24
/// A <see cref="
IHtmlContent
"/> containing an <input type="hidden"> element. This element should be put
31
public static
IHtmlContent
GetHtml(this IAntiforgery antiforgery, HttpContext httpContext)
Buffers\ViewBuffer.cs (5)
100
public IHtmlContentBuilder AppendHtml(
IHtmlContent
content)
196
if (value.Value is
IHtmlContent
valueAsHtmlContent)
242
if (value.Value is
IHtmlContent
valueAsHtmlContent)
277
destination.AppendHtml((
IHtmlContent
)value.Value);
314
destination.AppendHtml((
IHtmlContent
)value.Value);
Buffers\ViewBufferTextWriter.cs (5)
114
else if (value is
IHtmlContent
htmlContent)
125
/// Writes an <see cref="
IHtmlContent
"/> value.
127
/// <param name="value">The <see cref="
IHtmlContent
"/> value.</param>
128
public void Write(
IHtmlContent
value)
165
else if (value is
IHtmlContent
htmlContent)
Buffers\ViewBufferValue.cs (5)
11
/// Encapsulates a string or <see cref="
IHtmlContent
"/> value.
26
/// Initializes a new instance of <see cref="ViewBufferValue"/> with a <see cref="
IHtmlContent
"/> value.
28
/// <param name="content">The <see cref="
IHtmlContent
"/>.</param>
29
public ViewBufferValue(
IHtmlContent
content)
49
if (Value is
IHtmlContent
valueAsContent)
DefaultDisplayTemplates.cs (13)
18
public static
IHtmlContent
BooleanTemplate(IHtmlHelper htmlHelper)
31
private static
IHtmlContent
BooleanTemplateCheckbox(bool value)
46
private static
IHtmlContent
BooleanTemplateDropDownList(bool? value)
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)
232
var
templateBuilderResult = templateBuilder.Build();
266
public static
IHtmlContent
StringTemplate(IHtmlHelper htmlHelper)
277
public static
IHtmlContent
UrlTemplate(IHtmlHelper htmlHelper)
288
private static
IHtmlContent
HyperlinkTemplate(string uriString, string linkedText)
DefaultEditorTemplates.cs (29)
24
public static
IHtmlContent
BooleanTemplate(IHtmlHelper htmlHelper)
37
private static
IHtmlContent
BooleanTemplateCheckbox(IHtmlHelper htmlHelper, bool value)
45
private static
IHtmlContent
BooleanTemplateDropDownList(IHtmlHelper htmlHelper, bool? value)
54
public static
IHtmlContent
CollectionTemplate(IHtmlHelper htmlHelper)
131
public static
IHtmlContent
DecimalTemplate(IHtmlHelper htmlHelper)
142
public static
IHtmlContent
HiddenInputTemplate(IHtmlHelper htmlHelper)
147
IHtmlContent
display;
158
var
hidden = htmlHelper.Hidden(expression: null, value: model, htmlAttributes: htmlAttributesObject);
219
public static
IHtmlContent
MultilineTemplate(IHtmlHelper htmlHelper)
229
public static
IHtmlContent
ObjectTemplate(IHtmlHelper htmlHelper)
275
var
templateBuilderResult = templateBuilder.Build();
278
var
label = htmlHelper.Label(propertyMetadata.PropertyName, labelText: null, htmlAttributes: null);
313
public static
IHtmlContent
PasswordTemplate(IHtmlHelper htmlHelper)
335
public static
IHtmlContent
StringTemplate(IHtmlHelper htmlHelper)
340
public static
IHtmlContent
PhoneNumberInputTemplate(IHtmlHelper htmlHelper)
345
public static
IHtmlContent
UrlInputTemplate(IHtmlHelper htmlHelper)
350
public static
IHtmlContent
EmailAddressInputTemplate(IHtmlHelper htmlHelper)
355
public static
IHtmlContent
DateTimeOffsetTemplate(IHtmlHelper htmlHelper)
361
public static
IHtmlContent
DateTimeLocalInputTemplate(IHtmlHelper htmlHelper)
367
public static
IHtmlContent
DateInputTemplate(IHtmlHelper htmlHelper)
373
public static
IHtmlContent
TimeInputTemplate(IHtmlHelper htmlHelper)
379
public static
IHtmlContent
MonthInputTemplate(IHtmlHelper htmlHelper)
387
public static
IHtmlContent
WeekInputTemplate(IHtmlHelper htmlHelper)
392
public static
IHtmlContent
NumberInputTemplate(IHtmlHelper htmlHelper)
397
public static
IHtmlContent
FileInputTemplate(IHtmlHelper htmlHelper)
404
public static
IHtmlContent
FileCollectionInputTemplate(IHtmlHelper htmlHelper)
436
private static
IHtmlContent
GenerateTextBox(IHtmlHelper htmlHelper, string inputType = null)
441
private static
IHtmlContent
GenerateTextBox(IHtmlHelper htmlHelper, string inputType, object value)
449
private static
IHtmlContent
GenerateTextBox(IHtmlHelper htmlHelper, object value, object htmlAttributes)
DefaultHtmlGenerator.cs (5)
165
public virtual
IHtmlContent
GenerateAntiforgery(ViewContext viewContext)
565
var
listItemBuilder = GenerateGroupsAndOptions(optionLabel, selectList, currentValues);
1548
public
IHtmlContent
GenerateGroupsAndOptions(string optionLabel, IEnumerable<SelectListItem> selectList)
1553
private static
IHtmlContent
GenerateGroupsAndOptions(
1640
private static
IHtmlContent
GenerateOption(SelectListItem item, ICollection<string> currentValues)
FormContext.cs (4)
23
private IList<
IHtmlContent
> _endOfFormContent;
69
/// Gets an <see cref="
IHtmlContent
"/> collection that should be rendered just prior to the next </form>
72
public IList<
IHtmlContent
> EndOfFormContent
78
_endOfFormContent = new List<
IHtmlContent
>();
HtmlHelper.cs (45)
189
public
IHtmlContent
ActionLink(
220
public
IHtmlContent
AntiForgeryToken()
222
var
html = _htmlGenerator.GenerateAntiforgery(ViewContext);
269
public
IHtmlContent
CheckBox(string expression, bool? isChecked, object htmlAttributes)
305
public
IHtmlContent
Display(
335
public
IHtmlContent
DropDownList(
350
public
IHtmlContent
Editor(
401
public
IHtmlContent
Hidden(string expression, object value, object htmlAttributes)
418
public
IHtmlContent
Label(string expression, string labelText, object htmlAttributes)
429
public
IHtmlContent
ListBox(string expression, IEnumerable<SelectListItem> selectList, object htmlAttributes)
445
public async Task<
IHtmlContent
> PartialAsync(
475
/// <returns><see cref="
IHtmlContent
"/>.</returns>
476
protected virtual
IHtmlContent
GenerateDisplay(
554
public
IHtmlContent
Password(string expression, object value, object htmlAttributes)
564
public
IHtmlContent
RadioButton(string expression, object value, bool? isChecked, object htmlAttributes)
575
public
IHtmlContent
Raw(string value)
581
public
IHtmlContent
Raw(object value)
587
public
IHtmlContent
RouteLink(
616
public
IHtmlContent
ValidationMessage(string expression, string message, object htmlAttributes, string tag)
627
public
IHtmlContent
ValidationSummary(
655
public
IHtmlContent
TextArea(string expression, string value, int rows, int columns, object htmlAttributes)
677
public
IHtmlContent
TextBox(string expression, object value, string format, object htmlAttributes)
714
protected virtual
IHtmlContent
GenerateCheckBox(
815
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
816
protected
IHtmlContent
GenerateDropDown(
846
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
847
protected virtual
IHtmlContent
GenerateEditor(
993
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
994
protected virtual
IHtmlContent
GenerateHidden(
1038
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
1039
protected virtual
IHtmlContent
GenerateLabel(
1090
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
1091
protected
IHtmlContent
GenerateListBox(
1134
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
1135
protected virtual
IHtmlContent
GeneratePassword(
1166
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
1167
protected virtual
IHtmlContent
GenerateRadioButton(
1200
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
1201
protected virtual
IHtmlContent
GenerateTextArea(
1234
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
1235
protected virtual
IHtmlContent
GenerateTextBox(
1268
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
1269
protected virtual
IHtmlContent
GenerateValidationMessage(
1301
/// <returns>The <see cref="
IHtmlContent
"/>.</returns>
1302
protected virtual
IHtmlContent
GenerateValidationSummary(
HtmlHelperOfT.cs (12)
91
public
IHtmlContent
CheckBoxFor(
106
public
IHtmlContent
DropDownListFor<TResult>(
124
public
IHtmlContent
DisplayFor<TResult>(
171
public
IHtmlContent
EditorFor<TResult>(
188
public
IHtmlContent
HiddenFor<TResult>(
212
public
IHtmlContent
LabelFor<TResult>(
224
public
IHtmlContent
ListBoxFor<TResult>(
247
public
IHtmlContent
PasswordFor<TResult>(
262
public
IHtmlContent
RadioButtonFor<TResult>(
280
public
IHtmlContent
TextAreaFor<TResult>(
293
public
IHtmlContent
TextBoxFor<TResult>(
341
public
IHtmlContent
ValidationMessageFor<TResult>(
IHtmlGenerator.cs (4)
114
/// An <see cref="
IHtmlContent
"/> instance for the <input type="hidden".../> element. Intended to be used
117
IHtmlContent
GenerateAntiforgery(ViewContext viewContext);
459
/// An <see cref="
IHtmlContent
"/> instance for <optgroup> and <option> elements.
461
IHtmlContent
GenerateGroupsAndOptions(string optionLabel, IEnumerable<SelectListItem> selectList);
IViewComponentHelper.cs (4)
24
/// <returns>A <see cref="Task"/> that on completion returns the rendered <see cref="
IHtmlContent
" />.
26
Task<
IHtmlContent
> InvokeAsync(string name, object? arguments);
37
/// <returns>A <see cref="Task"/> that on completion returns the rendered <see cref="
IHtmlContent
" />.
39
Task<
IHtmlContent
> InvokeAsync(Type componentType, object? arguments);
Rendering\HtmlHelperComponentExtensions.cs (3)
24
public static Task<
IHtmlContent
> RenderComponentAsync<TComponent>(this IHtmlHelper htmlHelper, RenderMode renderMode) where TComponent : IComponent
35
public static Task<
IHtmlContent
> RenderComponentAsync<TComponent>(
49
public static async Task<
IHtmlContent
> RenderComponentAsync(
Rendering\HtmlHelperDisplayExtensions.cs (32)
23
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
38
public static
IHtmlContent
Display(this IHtmlHelper htmlHelper, string expression)
60
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
75
public static
IHtmlContent
Display(
100
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
115
public static
IHtmlContent
Display(
141
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
156
public static
IHtmlContent
Display(
186
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
201
public static
IHtmlContent
Display(
220
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
231
public static
IHtmlContent
DisplayFor<TModel, TResult>(
259
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
270
public static
IHtmlContent
DisplayFor<TModel, TResult>(
295
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
306
public static
IHtmlContent
DisplayFor<TModel, TResult>(
336
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
347
public static
IHtmlContent
DisplayFor<TModel, TResult>(
377
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
388
public static
IHtmlContent
DisplayFor<TModel, TResult>(
409
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
420
public static
IHtmlContent
DisplayForModel(this IHtmlHelper htmlHelper)
441
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
452
public static
IHtmlContent
DisplayForModel(this IHtmlHelper htmlHelper, object additionalViewData)
469
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
480
public static
IHtmlContent
DisplayForModel(this IHtmlHelper htmlHelper, string templateName)
503
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
514
public static
IHtmlContent
DisplayForModel(
539
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
550
public static
IHtmlContent
DisplayForModel(
580
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
591
public static
IHtmlContent
DisplayForModel(
Rendering\HtmlHelperEditorExtensions.cs (32)
23
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
38
public static
IHtmlContent
Editor(this IHtmlHelper htmlHelper, string expression)
60
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
75
public static
IHtmlContent
Editor(
100
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
115
public static
IHtmlContent
Editor(this IHtmlHelper htmlHelper, string expression, string templateName)
138
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
153
public static
IHtmlContent
Editor(
183
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
198
public static
IHtmlContent
Editor(
217
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
228
public static
IHtmlContent
EditorFor<TModel, TResult>(
252
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
263
public static
IHtmlContent
EditorFor<TModel, TResult>(
288
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
299
public static
IHtmlContent
EditorFor<TModel, TResult>(
325
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
336
public static
IHtmlContent
EditorFor<TModel, TResult>(
366
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
377
public static
IHtmlContent
EditorFor<TModel, TResult>(
394
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
405
public static
IHtmlContent
EditorForModel(this IHtmlHelper htmlHelper)
426
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
437
public static
IHtmlContent
EditorForModel(this IHtmlHelper htmlHelper, object additionalViewData)
454
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
465
public static
IHtmlContent
EditorForModel(this IHtmlHelper htmlHelper, string templateName)
488
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
499
public static
IHtmlContent
EditorForModel(
524
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
535
public static
IHtmlContent
EditorForModel(
565
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
576
public static
IHtmlContent
EditorForModel(
Rendering\HtmlHelperInputExtensions.cs (54)
25
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> elements.</returns>
31
public static
IHtmlContent
CheckBox(this IHtmlHelper htmlHelper, string expression)
51
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> elements.</returns>
57
public static
IHtmlContent
CheckBox(
84
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> elements.</returns>
90
public static
IHtmlContent
CheckBox(
110
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> elements.</returns>
116
public static
IHtmlContent
CheckBoxFor<TModel>(
136
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
142
public static
IHtmlContent
Hidden(this IHtmlHelper htmlHelper, string expression)
161
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
167
public static
IHtmlContent
Hidden(
188
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
194
public static
IHtmlContent
HiddenFor<TModel, TResult>(
210
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
216
public static
IHtmlContent
Password(this IHtmlHelper htmlHelper, string expression)
230
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
236
public static
IHtmlContent
Password(
254
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
260
public static
IHtmlContent
PasswordFor<TModel, TResult>(
284
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
290
public static
IHtmlContent
RadioButton(
324
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
330
public static
IHtmlContent
RadioButton(
363
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
369
public static
IHtmlContent
RadioButton(
394
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
401
public static
IHtmlContent
RadioButtonFor<TModel, TResult>(
423
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
429
public static
IHtmlContent
TextBox(this IHtmlHelper htmlHelper, string expression)
448
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
454
public static
IHtmlContent
TextBox(
480
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
486
public static
IHtmlContent
TextBox(
515
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
521
public static
IHtmlContent
TextBox(
543
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
549
public static
IHtmlContent
TextBoxFor<TModel, TResult>(
574
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
580
public static
IHtmlContent
TextBoxFor<TModel, TResult>(
608
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
614
public static
IHtmlContent
TextBoxFor<TModel, TResult>(
635
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <textarea> element.</returns>
641
public static
IHtmlContent
TextArea(
665
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <textarea> element.</returns>
671
public static
IHtmlContent
TextArea(
693
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <textarea> element.</returns>
699
public static
IHtmlContent
TextArea(
726
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <textarea> element.</returns>
732
public static
IHtmlContent
TextArea(
754
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <textarea> element.</returns>
760
public static
IHtmlContent
TextAreaFor<TModel, TResult>(
786
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <textarea> element.</returns>
792
public static
IHtmlContent
TextAreaFor<TModel, TResult>(
Rendering\HtmlHelperLabelExtensions.cs (18)
19
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
20
public static
IHtmlContent
Label(this IHtmlHelper htmlHelper, string expression)
33
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
34
public static
IHtmlContent
Label(this IHtmlHelper htmlHelper, string expression, string labelText)
48
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
49
public static
IHtmlContent
LabelFor<TModel, TResult>(
67
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
68
public static
IHtmlContent
LabelFor<TModel, TResult>(
91
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
92
public static
IHtmlContent
LabelFor<TModel, TResult>(
107
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
108
public static
IHtmlContent
LabelForModel(this IHtmlHelper htmlHelper)
120
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
121
public static
IHtmlContent
LabelForModel(this IHtmlHelper htmlHelper, string labelText)
137
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
138
public static
IHtmlContent
LabelForModel(this IHtmlHelper htmlHelper, object htmlAttributes)
155
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
156
public static
IHtmlContent
LabelForModel(
Rendering\HtmlHelperLinkExtensions.cs (22)
19
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
20
public static
IHtmlContent
ActionLink(
52
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
53
public static
IHtmlContent
ActionLink(
91
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
92
public static
IHtmlContent
ActionLink(
120
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
121
public static
IHtmlContent
ActionLink(
155
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
156
public static
IHtmlContent
ActionLink(
196
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
197
public static
IHtmlContent
ActionLink(
231
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
232
public static
IHtmlContent
RouteLink(
256
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
257
public static
IHtmlContent
RouteLink(
288
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
289
public static
IHtmlContent
RouteLink(
325
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
326
public static
IHtmlContent
RouteLink(
363
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
364
public static
IHtmlContent
RouteLink(
Rendering\HtmlHelperPartialExtensions.cs (14)
22
/// A <see cref="Task"/> that on completion returns a new <see cref="
IHtmlContent
"/> instance containing
25
public static Task<
IHtmlContent
> PartialAsync(
44
/// A <see cref="Task"/> that on completion returns a new <see cref="
IHtmlContent
"/> instance containing
47
public static Task<
IHtmlContent
> PartialAsync(
67
/// A <see cref="Task"/> that on completion returns a new <see cref="
IHtmlContent
"/> instance containing
70
public static Task<
IHtmlContent
> PartialAsync(
89
/// Returns a new <see cref="
IHtmlContent
"/> instance containing the created HTML.
95
public static
IHtmlContent
Partial(this IHtmlHelper htmlHelper, string partialViewName)
109
/// Returns a new <see cref="
IHtmlContent
"/> instance containing the created HTML.
115
public static
IHtmlContent
Partial(
132
/// Returns a new <see cref="
IHtmlContent
"/> instance containing the created HTML.
138
public static
IHtmlContent
Partial(this IHtmlHelper htmlHelper, string partialViewName, object model)
153
/// Returns a new <see cref="
IHtmlContent
"/> instance containing the created HTML.
159
public static
IHtmlContent
Partial(
Rendering\HtmlHelperSelectExtensions.cs (22)
25
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
37
public static
IHtmlContent
DropDownList(this IHtmlHelper htmlHelper, string expression)
59
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
71
public static
IHtmlContent
DropDownList(
103
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
109
public static
IHtmlContent
DropDownList(
141
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
147
public static
IHtmlContent
DropDownList(
179
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
185
public static
IHtmlContent
DropDownList(
214
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
220
public static
IHtmlContent
DropDownListFor<TModel, TResult>(
253
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
259
public static
IHtmlContent
DropDownListFor<TModel, TResult>(
296
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
302
public static
IHtmlContent
DropDownListFor<TModel, TResult>(
325
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
337
public static
IHtmlContent
ListBox(this IHtmlHelper htmlHelper, string expression)
362
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
368
public static
IHtmlContent
ListBox(
396
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
402
public static
IHtmlContent
ListBoxFor<TModel, TResult>(
Rendering\HtmlHelperValidationExtensions.cs (54)
21
/// A new <see cref="
IHtmlContent
"/> containing a <see cref="ViewContext.ValidationMessageElement"/> element.
22
/// An empty <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side
29
public static
IHtmlContent
ValidationMessage(
50
/// A new <see cref="
IHtmlContent
"/> containing a <see cref="ViewContext.ValidationMessageElement"/> element.
51
/// An empty <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side
54
public static
IHtmlContent
ValidationMessage(
77
/// A new <see cref="
IHtmlContent
"/> containing a <see cref="ViewContext.ValidationMessageElement"/> element.
78
/// An empty <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side
85
public static
IHtmlContent
ValidationMessage(
111
/// A new <see cref="
IHtmlContent
"/> containing a <paramref name="tag"/> element. An empty
112
/// <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side validation is
115
public static
IHtmlContent
ValidationMessage(
144
/// A new <see cref="
IHtmlContent
"/> containing a <see cref="ViewContext.ValidationMessageElement"/> element.
145
/// An empty <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side
148
public static
IHtmlContent
ValidationMessage(
168
/// A new <see cref="
IHtmlContent
"/> containing a <see cref="ViewContext.ValidationMessageElement"/> element.
169
/// An empty <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side
176
public static
IHtmlContent
ValidationMessageFor<TModel, TResult>(
200
/// A new <see cref="
IHtmlContent
"/> containing a <see cref="ViewContext.ValidationMessageElement"/> element.
201
/// An empty <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side
204
public static
IHtmlContent
ValidationMessageFor<TModel, TResult>(
235
/// A new <see cref="
IHtmlContent
"/> containing a <see cref="ViewContext.ValidationMessageElement"/> element.
236
/// An empty <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side
239
public static
IHtmlContent
ValidationMessageFor<TModel, TResult>(
269
/// A new <see cref="
IHtmlContent
"/> containing the <paramref name="tag"/> element. An empty
270
/// <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side validation is
273
public static
IHtmlContent
ValidationMessageFor<TModel, TResult>(
291
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the <ul> element.
292
/// An empty <see cref="
IHtmlContent
"/> if the current model is valid and client-side validation is disabled.
294
public static
IHtmlContent
ValidationSummary(this IHtmlHelper htmlHelper)
314
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the <ul> element.
315
/// An empty <see cref="
IHtmlContent
"/> if the current model is valid and client-side validation is disabled.
317
public static
IHtmlContent
ValidationSummary(this IHtmlHelper htmlHelper, bool excludePropertyErrors)
335
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the
337
/// <paramref name="message"/>) and the <ul> element. An empty <see cref="
IHtmlContent
"/> if the current
340
public static
IHtmlContent
ValidationSummary(this IHtmlHelper htmlHelper, string message)
362
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the <paramref name="tag"/> element
363
/// and the <ul> element. An empty <see cref="
IHtmlContent
"/> if the current model is valid and
366
public static
IHtmlContent
ValidationSummary(this IHtmlHelper htmlHelper, string message, string tag)
387
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the
389
/// <paramref name="message"/>) and the <ul> element. An empty <see cref="
IHtmlContent
"/> if the current
392
public static
IHtmlContent
ValidationSummary(
418
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the
420
/// <paramref name="message"/>) and the <ul> element. An empty <see cref="
IHtmlContent
"/> if the current
423
public static
IHtmlContent
ValidationSummary(
453
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the <paramref name="tag"/> element
454
/// and the <ul> element. An empty <see cref="
IHtmlContent
"/> if the current model is valid and
457
public static
IHtmlContent
ValidationSummary(
486
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the <paramref name="tag"/> element
487
/// and the <ul> element. An empty <see cref="
IHtmlContent
"/> if the current model is valid and
490
public static
IHtmlContent
ValidationSummary(
520
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the
522
/// <paramref name="message"/>) and the <ul> element. An empty <see cref="
IHtmlContent
"/> if the current
525
public static
IHtmlContent
ValidationSummary(
Rendering\IHtmlHelper.cs (40)
77
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
78
IHtmlContent
ActionLink(
92
/// <returns><see cref="
IHtmlContent
"/> containing the <hidden> element.</returns>
93
IHtmlContent
AntiForgeryToken();
186
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> elements.</returns>
192
IHtmlContent
CheckBox(string expression, bool? isChecked, object htmlAttributes);
213
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
228
IHtmlContent
Display(
274
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
280
IHtmlContent
DropDownList(
305
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
320
IHtmlContent
Editor(string expression, string templateName, string htmlFieldName, object additionalViewData);
415
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
421
IHtmlContent
Hidden(string expression, object value, object htmlAttributes);
439
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
440
IHtmlContent
Label(string expression, string labelText, object htmlAttributes);
462
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
468
IHtmlContent
ListBox(string expression, IEnumerable<SelectListItem> selectList, object htmlAttributes);
488
/// A <see cref="Task"/> that on completion returns a new <see cref="
IHtmlContent
"/> instance containing
491
Task<
IHtmlContent
> PartialAsync(string partialViewName, object model, ViewDataDictionary viewData);
505
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
511
IHtmlContent
Password(string expression, object value, object htmlAttributes);
544
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
550
IHtmlContent
RadioButton(string expression, object value, bool? isChecked, object htmlAttributes);
557
/// <returns>A new <see cref="
IHtmlContent
"/> containing the wrapped <see cref="string"/>.</returns>
558
IHtmlContent
Raw(string value);
565
/// <returns><see cref="
IHtmlContent
"/> containing the wrapped string representation.</returns>
566
IHtmlContent
Raw(object value);
600
/// <returns>A new <see cref="
IHtmlContent
"/> containing the anchor element.</returns>
601
IHtmlContent
RouteLink(
627
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <textarea> element.</returns>
633
IHtmlContent
TextArea(string expression, string value, int rows, int columns, object htmlAttributes);
655
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
661
IHtmlContent
TextBox(string expression, object value, string format, object htmlAttributes);
682
/// A new <see cref="
IHtmlContent
"/> containing a <paramref name="tag"/> element. An empty
683
/// <see cref="
IHtmlContent
"/> if the <paramref name="expression"/> is valid and client-side validation is
686
IHtmlContent
ValidationMessage(string expression, string message, object htmlAttributes, string tag);
705
/// New <see cref="
IHtmlContent
"/> containing a <div> element wrapping the <paramref name="tag"/> element
706
/// and the <ul> element. An empty <see cref="
IHtmlContent
"/> if the current model is valid and
709
IHtmlContent
ValidationSummary(
Rendering\IHtmlHelperOfT.cs (26)
38
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> elements.</returns>
44
IHtmlContent
CheckBoxFor(Expression<Func<TModel, bool>> expression, object htmlAttributes);
64
/// <returns>A new <see cref="
IHtmlContent
"/> containing the created HTML.</returns>
76
IHtmlContent
DisplayFor<TResult>(
136
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
142
IHtmlContent
DropDownListFor<TResult>(
165
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element(s).</returns>
176
IHtmlContent
EditorFor<TResult>(
201
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
207
IHtmlContent
HiddenFor<TResult>(
229
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <label> element.</returns>
230
IHtmlContent
LabelFor<TResult>(
255
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <select> element.</returns>
261
IHtmlContent
ListBoxFor<TResult>(
287
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
293
IHtmlContent
PasswordFor<TResult>(
320
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
326
IHtmlContent
RadioButtonFor<TResult>(
332
new
IHtmlContent
Raw(object value);
335
new
IHtmlContent
Raw(string value);
352
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <textarea> element.</returns>
358
IHtmlContent
TextAreaFor<TResult>(
382
/// <returns>A new <see cref="
IHtmlContent
"/> containing the <input> element.</returns>
388
IHtmlContent
TextBoxFor<TResult>(
413
/// A new <see cref="
IHtmlContent
"/> containing the <paramref name="tag"/> element. <c>null</c> if the
416
IHtmlContent
ValidationMessageFor<TResult>(
Rendering\IJsonHelper.cs (2)
17
/// <returns>A new <see cref="
IHtmlContent
"/> containing the serialized JSON.</returns>
18
IHtmlContent
Serialize(object value);
Rendering\MvcForm.cs (2)
73
foreach (
var
content in formContext.EndOfFormContent)
80
foreach (
var
content in formContext.EndOfFormContent)
Rendering\SystemTextJsonHelper.cs (1)
21
public
IHtmlContent
Serialize(object value)
Rendering\TagBuilder.cs (12)
329
/// Returns an <see cref="
IHtmlContent
"/> that renders the body.
331
/// <returns>An <see cref="
IHtmlContent
"/> that renders the body.</returns>
332
public
IHtmlContent
? RenderBody() => _innerHtml;
335
/// Returns an <see cref="
IHtmlContent
"/> that renders the start tag.
337
/// <returns>An <see cref="
IHtmlContent
"/> that renders the start tag.</returns>
338
public
IHtmlContent
RenderStartTag() => new RenderTagHtmlContent(this, TagRenderMode.StartTag);
341
/// Returns an <see cref="
IHtmlContent
"/> that renders the end tag.
343
/// <returns>An <see cref="
IHtmlContent
"/> that renders the end tag.</returns>
344
public
IHtmlContent
RenderEndTag() => new RenderTagHtmlContent(this, TagRenderMode.EndTag);
347
/// Returns an <see cref="
IHtmlContent
"/> that renders the self-closing tag.
349
/// <returns>An <see cref="
IHtmlContent
"/> that renders the self-closing tag.</returns>
350
public
IHtmlContent
RenderSelfClosingTag() => new RenderTagHtmlContent(this, TagRenderMode.SelfClosing);
Rendering\ViewComponentHelperExtensions.cs (8)
20
/// <returns>A <see cref="Task"/> that on completion returns the rendered <see cref="
IHtmlContent
" />.
22
public static Task<
IHtmlContent
> InvokeAsync(this IViewComponentHelper helper, string name)
34
/// <returns>A <see cref="Task"/> that on completion returns the rendered <see cref="
IHtmlContent
" />.
36
public static Task<
IHtmlContent
> InvokeAsync(this IViewComponentHelper helper, Type componentType)
49
/// <returns>A <see cref="Task"/> that on completion returns the rendered <see cref="
IHtmlContent
" />.
51
public static Task<
IHtmlContent
> InvokeAsync<TComponent>(this IViewComponentHelper helper, object? arguments)
63
/// <returns>A <see cref="Task"/> that on completion returns the rendered <see cref="
IHtmlContent
" />.
65
public static Task<
IHtmlContent
> InvokeAsync<TComponent>(this IViewComponentHelper helper)
TemplateBuilder.cs (1)
59
public
IHtmlContent
Build()
TemplateRenderer.cs (6)
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)
99
public
IHtmlContent
Render()
140
private Dictionary<string, Func<IHtmlHelper,
IHtmlContent
>> GetDefaultActions()
ViewComponentResultExecutor.cs (2)
115
var
viewComponentResult = await GetViewComponentResult(viewComponentHelper, _logger, result);
142
private static Task<
IHtmlContent
> GetViewComponentResult(IViewComponentHelper viewComponentHelper, ILogger logger, ViewComponentResult result)
ViewComponents\DefaultViewComponentHelper.cs (3)
67
public Task<
IHtmlContent
> InvokeAsync(string name, object? arguments)
85
public Task<
IHtmlContent
> InvokeAsync(Type componentType, object? arguments)
129
private async Task<
IHtmlContent
> InvokeCoreAsync(ViewComponentDescriptor descriptor, object? arguments)
ViewComponents\DefaultViewComponentInvoker.cs (4)
125
else if (returnType == typeof(Task<
IHtmlContent
>))
133
resultAsObject = await (Task<
IHtmlContent
>)task;
187
if (value is
IHtmlContent
htmlContent)
194
typeof(
IHtmlContent
).Name,
ViewComponents\HtmlContentViewComponentResult.cs (3)
11
/// An <see cref="IViewComponentResult"/> which writes an <see cref="
IHtmlContent
"/> when executed.
22
public HtmlContentViewComponentResult(
IHtmlContent
encodedContent)
32
public
IHtmlContent
EncodedContent { get; }
Microsoft.AspNetCore.Razor (18)
TagHelpers\DefaultTagHelperContent.cs (5)
82
public override TagHelperContent AppendHtml(
IHtmlContent
htmlContent) => AppendCore(htmlContent);
214
((
IHtmlContent
)entry).WriteTo(writer, encoder);
235
destination.AppendHtml((
IHtmlContent
)entry);
256
destination.AppendHtml((
IHtmlContent
)entry);
274
((
IHtmlContent
)entry).WriteTo(writer, NullHtmlEncoder.Default);
TagHelpers\TagHelperAttribute.cs (6)
99
var
htmlContent = Value as
IHtmlContent
;
136
IHtmlContent
valueAsHtmlContent;
145
else if ((valueAsHtmlContent = Value as
IHtmlContent
) != null)
181
IHtmlContent
valueAsHtmlContent;
190
else if ((valueAsHtmlContent = Value as
IHtmlContent
) != null)
TagHelpers\TagHelperContent.cs (5)
28
/// <param name="htmlContent">The <see cref="
IHtmlContent
"/> that replaces the content.</param>
30
public TagHelperContent SetHtmlContent(
IHtmlContent
htmlContent)
74
/// <param name="htmlContent">The <see cref="
IHtmlContent
"/> to be appended.</param>
76
public abstract TagHelperContent AppendHtml(
IHtmlContent
htmlContent);
158
IHtmlContentBuilder IHtmlContentBuilder.AppendHtml(
IHtmlContent
content)
TagHelpers\TagHelperOutput.cs (2)
248
/// The <see cref="HtmlEncoder"/> to use when the page handles non-<see cref="
IHtmlContent
"/> C# expressions.
270
/// The <see cref="HtmlEncoder"/> to use when the page handles non-<see cref="
IHtmlContent
"/> C# expressions.
Microsoft.Data.Analysis.Interactive (7)
DataFrameKernelExtension.cs (7)
44
var header = new List<
IHtmlContent
>
48
header.AddRange(df.Columns.Select(c => (
IHtmlContent
)th(c.Name)));
57
var rows = new List<List<
IHtmlContent
>>();
60
var cells = new List<
IHtmlContent
>
72
var footer = new List<
IHtmlContent
>();
110
var rows = new List<List<
IHtmlContent
>>();
113
var cells = new List<
IHtmlContent
>
Microsoft.ML.AutoML.Interactive (3)
AutoMLMonitorKernelExtension.cs (3)
48
var summary = new List<
IHtmlContent
>();
82
var chartHeader = new List<
IHtmlContent
>();
98
var tableHeader = new List<
IHtmlContent
>();