11 instantiations of ViewContext
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageActionInvoker.cs (2)
112
_viewContext = new
ViewContext
(
151
_viewContext = new
ViewContext
(
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
203
var partialViewContext = new
ViewContext
(ViewContext, view, newViewData, writer);
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
HtmlHelper.cs (1)
547
var viewContext = new
ViewContext
(ViewContext, view, newViewData, writer);
TemplateRenderer.cs (2)
122
var viewContext = new
ViewContext
(_viewContext, viewEngineResult.View, _viewData, writer);
244
var newViewContext = new
ViewContext
(viewContext, viewContext.View, viewData, viewContext.Writer);
ViewComponentResultExecutor.cs (1)
102
var viewContext = new
ViewContext
(
ViewComponents\ViewComponentContext.cs (2)
26
ViewContext = new
ViewContext
();
58
ViewContext = new
ViewContext
(
ViewComponents\ViewViewComponentResult.cs (1)
118
var childViewContext = new
ViewContext
(
ViewExecutor.cs (1)
157
var viewContext = new
ViewContext
(
333 references to ViewContext
Microsoft.AspNetCore.Mvc.Localization (3)
ViewLocalizer.cs (3)
75
/// Apply the specified <see cref="
ViewContext
"/>.
77
/// <param name="viewContext">The <see cref="
ViewContext
"/>.</param>
78
public void Contextualize(
ViewContext
viewContext)
Microsoft.AspNetCore.Mvc.Razor (77)
DefaultTagHelperFactory.cs (9)
20
private readonly ConcurrentDictionary<Type, PropertyActivator<
ViewContext
>[]> _injectActions;
21
private readonly Func<Type, PropertyActivator<
ViewContext
>[]> _getPropertiesToActivate;
22
private static readonly Func<PropertyInfo, PropertyActivator<
ViewContext
>> _createActivateInfo = CreateActivateInfo;
35
_injectActions = new ConcurrentDictionary<Type, PropertyActivator<
ViewContext
>[]>();
37
PropertyActivator<
ViewContext
>.GetPropertiesToActivate(
49
public TTagHelper CreateTagHelper<TTagHelper>(
ViewContext
context)
71
private static void InitializeTagHelper<TTagHelper>(TTagHelper tagHelper,
ViewContext
context)
84
private static PropertyActivator<
ViewContext
> CreateActivateInfo(PropertyInfo property)
86
return new PropertyActivator<
ViewContext
>(property, viewContext => viewContext);
DependencyInjection\MvcRazorMvcBuilderExtensions.cs (1)
59
Action<TTagHelper,
ViewContext
> initialize)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
104
Action<TTagHelper,
ViewContext
> initialize)
Diagnostics\MvcDiagnostics.cs (4)
30
public BeforeViewPageEventData(IRazorPage page,
ViewContext
viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext)
46
public
ViewContext
ViewContext { get; }
91
public AfterViewPageEventData(IRazorPage page,
ViewContext
viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext)
107
public
ViewContext
ViewContext { get; }
Infrastructure\DefaultTagHelperActivator.cs (1)
16
public TTagHelper Create<TTagHelper>(
ViewContext
context)
IRazorPage.cs (2)
17
ViewContext
ViewContext { get; set; }
55
/// Renders the page and writes the output to the <see cref="
ViewContext
.Writer"/>.
IRazorPageActivator.cs (2)
17
/// <param name="context">The <see cref="
ViewContext
"/> for the executing view.</param>
18
void Activate(IRazorPage page,
ViewContext
context);
ITagHelperActivator.cs (2)
18
/// <param name="context">The <see cref="
ViewContext
"/> for the executing view.</param>
20
TTagHelper Create<TTagHelper>(
ViewContext
context) where TTagHelper : ITagHelper;
ITagHelperFactory.cs (2)
17
/// <param name="context"><see cref="
ViewContext
"/> for the executing view.</param>
19
TTagHelper CreateTagHelper<TTagHelper>(
ViewContext
context) where TTagHelper : ITagHelper;
ITagHelperInitializerOfT.cs (2)
20
/// <param name="context">The <see cref="
ViewContext
"/> for the executing view.</param>
21
void Initialize(TTagHelper helper,
ViewContext
context);
MvcRazorDiagnosticListenerExtensions.cs (4)
15
ViewContext
viewContext)
27
ViewContext
viewContext)
45
ViewContext
viewContext)
57
ViewContext
viewContext)
RazorPage.cs (1)
174
var
viewContext = ViewContext;
RazorPageActivator.cs (1)
58
public void Activate(IRazorPage page,
ViewContext
context)
RazorPageBase.cs (10)
46
public virtual
ViewContext
ViewContext { get; set; } = default!;
62
var
viewContext = ViewContext;
215
/// All writes to the <see cref="Output"/> or <see cref="
ViewContext
.Writer"/> after calling this method will
220
var
viewContext = ViewContext;
263
/// All writes to the <see cref="Output"/> or <see cref="
ViewContext
.Writer"/> after calling this method will
276
var
viewContext = ViewContext;
325
var
viewContext = ViewContext;
337
var
viewContext = ViewContext;
354
var
viewContext = ViewContext;
713
var
viewContext = ViewContext;
RazorPagePropertyActivator.cs (12)
22
private readonly PropertyActivator<
ViewContext
>[] _propertyActivators;
38
_propertyActivators = PropertyActivator<
ViewContext
>.GetPropertiesToActivate<RazorInjectAttribute>(
44
public void Activate(object page,
ViewContext
context)
57
internal ViewDataDictionary CreateViewDataDictionary(
ViewContext
context)
75
private static PropertyActivator<
ViewContext
> CreateActivateInfo(
80
Func<
ViewContext
, object> valueAccessor;
134
return new PropertyActivator<
ViewContext
>(property, valueAccessor);
139
public Func<
ViewContext
, object> UrlHelperAccessor { get; init; } = default!;
141
public Func<
ViewContext
, object> JsonHelperAccessor { get; init; } = default!;
143
public Func<
ViewContext
, object> DiagnosticSourceAccessor { get; init; } = default!;
145
public Func<
ViewContext
, object> HtmlEncoderAccessor { get; init; } = default!;
147
public Func<
ViewContext
, object> ModelExpressionProviderAccessor { get; init; } = default!;
RazorView.cs (7)
73
internal Action<IRazorPage,
ViewContext
>? OnAfterPageActivated { get; set; }
76
public virtual async Task RenderAsync(
ViewContext
context)
91
ViewContext
context,
138
private async Task RenderPageCoreAsync(IRazorPage page,
ViewContext
context)
157
private async Task RenderViewStartsAsync(
ViewContext
context)
195
ViewContext
context,
269
private IRazorPage GetLayoutPage(
ViewContext
context, string executingFilePath, string layoutPath)
ServiceBasedTagHelperActivator.cs (1)
17
public TTagHelper Create<TTagHelper>(
ViewContext
context) where TTagHelper : ITagHelper
TagHelperInitializerOfT.cs (3)
13
private readonly Action<TTagHelper,
ViewContext
> _initializeDelegate;
19
public TagHelperInitializer(Action<TTagHelper,
ViewContext
> action)
27
public void Initialize(TTagHelper helper,
ViewContext
context)
TagHelpers\ITagHelperComponentPropertyActivator.cs (2)
17
/// <param name="context">The <see cref="
ViewContext
"/> for the executing view.</param>
19
void Activate(
ViewContext
context, ITagHelperComponent tagHelperComponent);
TagHelpers\TagHelperComponentPropertyActivator.cs (8)
18
private readonly ConcurrentDictionary<Type, PropertyActivator<
ViewContext
>[]> _propertiesToActivate = new();
19
private readonly Func<Type, PropertyActivator<
ViewContext
>[]> _getPropertiesToActivate = GetPropertiesToActivate;
20
private static readonly Func<PropertyInfo, PropertyActivator<
ViewContext
>> _createActivateInfo = CreateActivateInfo;
28
public void Activate(
ViewContext
context, ITagHelperComponent tagHelperComponent)
43
private static PropertyActivator<
ViewContext
> CreateActivateInfo(PropertyInfo property)
45
return new PropertyActivator<
ViewContext
>(property, viewContext => viewContext);
48
private static PropertyActivator<
ViewContext
>[] GetPropertiesToActivate(Type type)
50
return PropertyActivator<
ViewContext
>.GetPropertiesToActivate(
TagHelpers\TagHelperComponentTagHelper.cs (1)
54
public
ViewContext
ViewContext { get; set; } = default!;
TagHelpers\UrlResolutionTagHelper.cs (1)
114
public
ViewContext
ViewContext { get; set; } = default!;
Microsoft.AspNetCore.Mvc.RazorPages (29)
Infrastructure\DefaultPageActivatorProvider.cs (12)
15
private readonly Action<PageContext,
ViewContext
, object> _disposer = Dispose;
16
private readonly Func<PageContext,
ViewContext
, object, ValueTask> _asyncDisposer = AsyncDispose;
17
private readonly Func<PageContext,
ViewContext
, object, ValueTask> _syncAsyncDisposer = SyncAsyncDispose;
20
public Func<PageContext,
ViewContext
, object> CreateActivator(CompiledPageActionDescriptor actionDescriptor)
36
public Action<PageContext,
ViewContext
, object>? CreateReleaser(CompiledPageActionDescriptor actionDescriptor)
48
public Func<PageContext,
ViewContext
, object, ValueTask>? CreateAsyncReleaser(CompiledPageActionDescriptor actionDescriptor)
65
private static Func<PageContext,
ViewContext
, object> CreatePageFactory(Type pageTypeInfo)
68
var parameter2 = Expression.Parameter(typeof(
ViewContext
), "viewContext");
75
.Lambda<Func<PageContext,
ViewContext
, object>>(newExpression, parameter1, parameter2)
80
private static void Dispose(PageContext context,
ViewContext
viewContext, object page)
89
private static ValueTask SyncAsyncDispose(PageContext context,
ViewContext
viewContext, object page)
95
private static ValueTask AsyncDispose(PageContext context,
ViewContext
viewContext, object page)
Infrastructure\DefaultPageFactoryProvider.cs (3)
42
public Func<PageContext,
ViewContext
, object> CreatePageFactory(CompiledPageActionDescriptor actionDescriptor)
70
public Action<PageContext,
ViewContext
, object>? CreatePageDisposer(CompiledPageActionDescriptor descriptor)
77
public Func<PageContext,
ViewContext
, object, ValueTask>? CreateAsyncPageDisposer(CompiledPageActionDescriptor descriptor)
Infrastructure\PageActionInvoker.cs (1)
28
private
ViewContext
? _viewContext;
Infrastructure\PageActionInvokerCacheEntry.cs (4)
17
Func<PageContext,
ViewContext
, object> pageFactory,
18
Func<PageContext,
ViewContext
, object, ValueTask>? releasePage,
42
public Func<PageContext,
ViewContext
, object> PageFactory { get; }
47
public Func<PageContext,
ViewContext
, object, ValueTask>? ReleasePage { get; }
Infrastructure\PageResultExecutor.cs (1)
69
var
viewContext = result.Page.ViewContext;
Infrastructure\RazorPageAdapter.cs (1)
32
public
ViewContext
ViewContext
IPageActivatorProvider.cs (3)
18
Func<PageContext,
ViewContext
, object> CreateActivator(CompiledPageActionDescriptor descriptor);
25
Action<PageContext,
ViewContext
, object>? CreateReleaser(CompiledPageActionDescriptor descriptor);
32
Func<PageContext,
ViewContext
, object, ValueTask>? CreateAsyncReleaser(CompiledPageActionDescriptor descriptor)
IPageFactoryProvider.cs (3)
18
Func<PageContext,
ViewContext
, object> CreatePageFactory(CompiledPageActionDescriptor descriptor);
25
Action<PageContext,
ViewContext
, object>? CreatePageDisposer(CompiledPageActionDescriptor descriptor);
32
Func<PageContext,
ViewContext
, object, ValueTask>? CreateAsyncPageDisposer(CompiledPageActionDescriptor descriptor)
PageBase.cs (1)
37
public override
ViewContext
ViewContext { get; set; } = default!;
Microsoft.AspNetCore.Mvc.TagHelpers (31)
AnchorTagHelper.cs (2)
155
/// Gets or sets the <see cref="Rendering.
ViewContext
"/> for the current request.
159
public
ViewContext
ViewContext { get; set; }
CacheTagHelperBase.cs (1)
58
public
ViewContext
ViewContext { get; set; }
ComponentTagHelper.cs (2)
29
/// Gets or sets the <see cref="Rendering.
ViewContext
"/> for the current request.
33
public
ViewContext
ViewContext { get; set; }
FormActionTagHelper.cs (2)
93
/// Gets or sets the <see cref="Rendering.
ViewContext
"/> for the current request.
97
public
ViewContext
ViewContext { get; set; }
FormTagHelper.cs (2)
47
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
51
public
ViewContext
ViewContext { get; set; }
InputTagHelper.cs (2)
83
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
87
public
ViewContext
ViewContext { get; set; }
LabelTagHelper.cs (2)
31
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
35
public
ViewContext
ViewContext { get; set; }
OptionTagHelper.cs (2)
38
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
42
public
ViewContext
ViewContext { get; set; }
PartialTagHelper.cs (3)
97
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
101
public
ViewContext
ViewContext { get; set; }
203
var
partialViewContext = new ViewContext(ViewContext, view, newViewData, writer);
PersistComponentStateTagHelper.cs (2)
24
/// Gets or sets the <see cref="Rendering.
ViewContext
"/> for the current request.
28
public
ViewContext
ViewContext { get; set; }
RenderAtEndOfFormTagHelper.cs (2)
25
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
29
public
ViewContext
ViewContext { get; set; }
ResourceCollectionUtilities.cs (1)
12
internal static bool TryResolveFromAssetCollection(
ViewContext
viewContext, string url, out string resolvedUrl)
SelectTagHelper.cs (2)
44
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
48
public
ViewContext
ViewContext { get; set; }
TextAreaTagHelper.cs (2)
36
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
40
public
ViewContext
ViewContext { get; set; }
ValidationMessageTagHelper.cs (2)
33
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
37
public
ViewContext
ViewContext { get; set; }
ValidationSummaryTagHelper.cs (2)
33
/// Gets the <see cref="Rendering.
ViewContext
"/> of the executing view.
37
public
ViewContext
ViewContext { get; set; }
Microsoft.AspNetCore.Mvc.ViewFeatures (193)
DefaultHtmlGenerator.cs (31)
126
ViewContext
viewContext,
146
ViewContext
viewContext,
165
public virtual IHtmlContent GenerateAntiforgery(
ViewContext
viewContext)
188
ViewContext
viewContext,
234
ViewContext
viewContext,
256
ViewContext
viewContext,
295
ViewContext
viewContext,
313
ViewContext
viewContext,
329
ViewContext
viewContext,
361
ViewContext
viewContext,
399
ViewContext
viewContext,
424
ViewContext
viewContext,
487
ViewContext
viewContext,
506
ViewContext
viewContext,
530
ViewContext
viewContext,
597
ViewContext
viewContext,
685
ViewContext
viewContext,
711
ViewContext
viewContext,
802
ViewContext
viewContext,
901
ViewContext
viewContext,
1028
internal static string EvalString(
ViewContext
viewContext, string key, string format)
1064
internal static object GetModelStateValue(
ViewContext
viewContext, string key, Type destinationType)
1077
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
1088
ViewContext
viewContext,
1117
/// <param name="viewContext">The <see cref="
ViewContext
"/>.</param>
1130
ViewContext
viewContext,
1361
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
1366
ViewContext
viewContext,
1408
private static bool EvalBoolean(
ViewContext
viewContext, string key)
1413
private static string EvalString(
ViewContext
viewContext, string key)
1486
ViewContext
viewContext,
DefaultHtmlGeneratorExtensions.cs (4)
17
/// <param name="viewContext">The <see cref="
ViewContext
"/>.</param>
27
ViewContext
viewContext,
50
/// <param name="viewContext">The <see cref="
ViewContext
"/>.</param>
59
ViewContext
viewContext,
DefaultValidationHtmlAttributeProvider.cs (1)
45
ViewContext
viewContext,
Diagnostics\MvcDiagnostics.cs (4)
237
public BeforeViewEventData(IView view,
ViewContext
viewContext)
251
public
ViewContext
ViewContext { get; }
280
public AfterViewEventData(IView view,
ViewContext
viewContext)
294
public
ViewContext
ViewContext { get; }
HtmlHelper.cs (6)
56
private
ViewContext
_viewContext;
95
public
ViewContext
ViewContext
181
public virtual void Contextualize(
ViewContext
viewContext)
547
var
viewContext = new ViewContext(ViewContext, view, newViewData, writer);
894
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
952
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
HtmlHelperOfT.cs (2)
48
public override void Contextualize(
ViewContext
viewContext)
56
typeof(
ViewContext
)),
HtmlHelperOptions.cs (1)
9
/// Provides programmatic configuration for the HTML helpers and <see cref="
ViewContext
"/>.
IHtmlGenerator.cs (40)
44
/// <param name="viewContext">The <see cref="
ViewContext
"/> instance for the current scope.</param>
65
ViewContext
viewContext,
78
/// <param name="viewContext">The <see cref="
ViewContext
"/> instance for the current scope.</param>
99
ViewContext
viewContext,
112
/// <param name="viewContext">The <see cref="
ViewContext
"/> instance for the current scope.</param>
117
IHtmlContent GenerateAntiforgery(
ViewContext
viewContext);
122
/// <param name="viewContext">The <see cref="
ViewContext
"/> instance for the current scope.</param>
134
ViewContext
viewContext,
146
ViewContext
viewContext,
154
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
172
ViewContext
viewContext,
183
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
202
ViewContext
viewContext,
214
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
231
ViewContext
viewContext,
240
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
253
ViewContext
viewContext,
263
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
275
ViewContext
viewContext,
284
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
296
ViewContext
viewContext,
305
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
318
ViewContext
viewContext,
328
/// <param name="viewContext">The <see cref="
ViewContext
"/> instance for the current scope.</param>
348
ViewContext
viewContext,
360
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
392
ViewContext
viewContext,
403
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
441
ViewContext
viewContext,
466
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
479
ViewContext
viewContext,
489
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
502
ViewContext
viewContext,
513
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
523
/// <see cref="
ViewContext
.ValidationMessageElement"/>.
530
/// <remarks><see cref="
ViewContext
.ValidationMessageElement"/> is <c>"span"</c> by default.</remarks>
532
ViewContext
viewContext,
554
ViewContext
viewContext,
563
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
595
ViewContext
viewContext,
IViewContextAware.cs (3)
9
/// Contract for contextualizing a property activated by a view with the <see cref="
ViewContext
"/>.
17
/// <param name="viewContext">The <see cref="
ViewContext
"/>.</param>
18
void Contextualize(
ViewContext
viewContext);
MvcViewFeaturesDiagnosticListenerExtensions.cs (4)
123
ViewContext
viewContext)
132
private static void BeforeViewImpl(DiagnosticListener diagnosticListener, IView view,
ViewContext
viewContext)
145
ViewContext
viewContext)
154
private static void AfterViewImpl(DiagnosticListener diagnosticListener, IView view,
ViewContext
viewContext)
MvcViewOptions.cs (1)
23
/// Gets or sets programmatic configuration for the HTML helpers and <see cref="Rendering.
ViewContext
"/>.
NameAndIdProvider.cs (6)
18
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
32
public static string CreateSanitizedId(
ViewContext
viewContext, string fullName, string invalidCharReplacement)
78
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
92
ViewContext
viewContext,
122
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
128
public static string GetFullHtmlFieldName(
ViewContext
viewContext, string expression)
NullView.cs (1)
15
public Task RenderAsync(
ViewContext
context)
Rendering\HtmlHelperFormExtensions.cs (19)
20
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
50
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
76
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
106
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
145
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
180
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
206
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
242
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
273
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
311
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
348
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
384
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
419
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
443
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
472
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
503
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
531
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
566
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
600
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
Rendering\HtmlHelperPartialExtensions.cs (7)
180
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
196
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
215
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
232
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
256
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
278
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
301
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
Rendering\HtmlHelperValidationExtensions.cs (19)
21
/// A new <see cref="IHtmlContent"/> containing a <see cref="
ViewContext
.ValidationMessageElement"/> element.
50
/// A new <see cref="IHtmlContent"/> containing a <see cref="
ViewContext
.ValidationMessageElement"/> element.
72
/// (<see cref="
ViewContext
.ValidationMessageElement"/>) element. Alternatively, an
77
/// A new <see cref="IHtmlContent"/> containing a <see cref="
ViewContext
.ValidationMessageElement"/> element.
108
/// <see cref="
ViewContext
.ValidationMessageElement"/>.
139
/// (<see cref="
ViewContext
.ValidationMessageElement"/>) element. Alternatively, an
144
/// A new <see cref="IHtmlContent"/> containing a <see cref="
ViewContext
.ValidationMessageElement"/> element.
168
/// A new <see cref="IHtmlContent"/> containing a <see cref="
ViewContext
.ValidationMessageElement"/> element.
200
/// A new <see cref="IHtmlContent"/> containing a <see cref="
ViewContext
.ValidationMessageElement"/> element.
228
/// (<see cref="
ViewContext
.ValidationMessageElement"/>) element. Alternatively, an
235
/// A new <see cref="IHtmlContent"/> containing a <see cref="
ViewContext
.ValidationMessageElement"/> element.
264
/// <see cref="
ViewContext
.ValidationMessageElement"/>.
336
/// <see cref="
ViewContext
.ValidationSummaryMessageElement" /> element (which wraps the
359
/// <see cref="
ViewContext
.ValidationSummaryMessageElement" />.
388
/// <see cref="
ViewContext
.ValidationSummaryMessageElement" /> element (which, in turn, wraps the
419
/// <see cref="
ViewContext
.ValidationSummaryMessageElement" /> element (which wraps the
450
/// <see cref="
ViewContext
.ValidationSummaryMessageElement" />.
483
/// <see cref="
ViewContext
.ValidationSummaryMessageElement" />.
521
/// <see cref="
ViewContext
.ValidationSummaryMessageElement" /> element (which wraps the
Rendering\IHtmlHelper.cs (7)
41
ViewContext
ViewContext { get; }
122
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
158
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
340
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
578
/// In this context, "renders" means the method writes its output using <see cref="
ViewContext
.Writer"/>.
679
/// <see cref="
ViewContext
.ValidationMessageElement"/>.
702
/// <see cref="
ViewContext
.ValidationSummaryMessageElement" />.
Rendering\IHtmlHelperOfT.cs (1)
409
/// <see cref="
ViewContext
.ValidationMessageElement"/>.
Rendering\MvcForm.cs (3)
15
private readonly
ViewContext
_viewContext;
23
/// <param name="viewContext">The <see cref="
ViewContext
"/>.</param>
25
public MvcForm(
ViewContext
viewContext, HtmlEncoder htmlEncoder)
Rendering\ViewContext.cs (5)
24
/// Creates an empty <see cref="
ViewContext
"/>.
39
/// Initializes a new instance of <see cref="
ViewContext
"/>.
78
/// Initializes a new instance of <see cref="
ViewContext
"/>.
80
/// <param name="viewContext">The <see cref="
ViewContext
"/> to copy values from.</param>
85
ViewContext
viewContext,
TemplateBuilder.cs (2)
18
private readonly
ViewContext
_viewContext;
31
ViewContext
viewContext,
TemplateRenderer.cs (5)
73
private readonly
ViewContext
_viewContext;
81
ViewContext
viewContext,
122
var
viewContext = new ViewContext(_viewContext, viewEngineResult.View, _viewData, writer);
238
private static IHtmlHelper MakeHtmlHelper(
ViewContext
viewContext, ViewDataDictionary viewData)
244
var
newViewContext = new ViewContext(viewContext, viewContext.View, viewData, viewContext.Writer);
ValidationHtmlAttributeProvider.cs (4)
17
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
28
ViewContext
viewContext,
37
/// <param name="viewContext">A <see cref="
ViewContext
"/> instance for the current scope.</param>
51
ViewContext
viewContext,
ViewComponent.cs (1)
129
public
ViewContext
ViewContext => ViewComponentContext.ViewContext;
ViewComponentResultExecutor.cs (2)
102
var
viewContext = new ViewContext(
136
private static void OnExecuting(
ViewContext
viewContext)
ViewComponents\DefaultViewComponentHelper.cs (2)
26
private
ViewContext
_viewContext = default!;
59
public void Contextualize(
ViewContext
viewContext)
ViewComponents\ViewComponentContext.cs (3)
43
ViewContext
viewContext,
90
/// Gets or sets the <see cref="Rendering.
ViewContext
"/>.
95
public
ViewContext
ViewContext { get; set; }
ViewComponents\ViewViewComponentResult.cs (2)
73
var
viewContext = context.ViewContext;
118
var
childViewContext = new ViewContext(
ViewContextAttribute.cs (1)
8
/// <see cref="Rendering.
ViewContext
"/> when creating the tag helper. The property must have a
ViewEngines\IView.cs (2)
23
/// <param name="context">The <see cref="
ViewContext
"/>.</param>
25
Task RenderAsync(
ViewContext
context);
ViewExecutor.cs (4)
157
var
viewContext = new ViewContext(
171
/// <param name="viewContext">The <see cref="
ViewContext
"/> associated with the current request.</param>
181
ViewContext
viewContext,
233
private static void OnExecuting(
ViewContext
viewContext)