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)
203var partialViewContext = new ViewContext(ViewContext, view, newViewData, writer);
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
HtmlHelper.cs (1)
547var viewContext = new ViewContext(ViewContext, view, newViewData, writer);
TemplateRenderer.cs (2)
122var viewContext = new ViewContext(_viewContext, viewEngineResult.View, _viewData, writer); 244var newViewContext = new ViewContext(viewContext, viewContext.View, viewData, viewContext.Writer);
ViewComponentResultExecutor.cs (1)
102var viewContext = new ViewContext(
ViewComponents\ViewComponentContext.cs (2)
26ViewContext = new ViewContext(); 58ViewContext = new ViewContext(
ViewComponents\ViewViewComponentResult.cs (1)
118var childViewContext = new ViewContext(
ViewExecutor.cs (1)
157var 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> 78public void Contextualize(ViewContext viewContext)
Microsoft.AspNetCore.Mvc.Razor (77)
DefaultTagHelperFactory.cs (9)
20private readonly ConcurrentDictionary<Type, PropertyActivator<ViewContext>[]> _injectActions; 21private readonly Func<Type, PropertyActivator<ViewContext>[]> _getPropertiesToActivate; 22private static readonly Func<PropertyInfo, PropertyActivator<ViewContext>> _createActivateInfo = CreateActivateInfo; 35_injectActions = new ConcurrentDictionary<Type, PropertyActivator<ViewContext>[]>(); 37PropertyActivator<ViewContext>.GetPropertiesToActivate( 49public TTagHelper CreateTagHelper<TTagHelper>(ViewContext context) 71private static void InitializeTagHelper<TTagHelper>(TTagHelper tagHelper, ViewContext context) 84private static PropertyActivator<ViewContext> CreateActivateInfo(PropertyInfo property) 86return new PropertyActivator<ViewContext>(property, viewContext => viewContext);
DependencyInjection\MvcRazorMvcBuilderExtensions.cs (1)
59Action<TTagHelper, ViewContext> initialize)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
104Action<TTagHelper, ViewContext> initialize)
Diagnostics\MvcDiagnostics.cs (4)
30public BeforeViewPageEventData(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) 46public ViewContext ViewContext { get; } 91public AfterViewPageEventData(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) 107public ViewContext ViewContext { get; }
Infrastructure\DefaultTagHelperActivator.cs (1)
16public TTagHelper Create<TTagHelper>(ViewContext context)
IRazorPage.cs (2)
17ViewContext 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> 18void Activate(IRazorPage page, ViewContext context);
ITagHelperActivator.cs (2)
18/// <param name="context">The <see cref="ViewContext"/> for the executing view.</param> 20TTagHelper Create<TTagHelper>(ViewContext context) where TTagHelper : ITagHelper;
ITagHelperFactory.cs (2)
17/// <param name="context"><see cref="ViewContext"/> for the executing view.</param> 19TTagHelper CreateTagHelper<TTagHelper>(ViewContext context) where TTagHelper : ITagHelper;
ITagHelperInitializerOfT.cs (2)
20/// <param name="context">The <see cref="ViewContext"/> for the executing view.</param> 21void Initialize(TTagHelper helper, ViewContext context);
MvcRazorDiagnosticListenerExtensions.cs (4)
15ViewContext viewContext) 27ViewContext viewContext) 45ViewContext viewContext) 57ViewContext viewContext)
RazorPage.cs (1)
174var viewContext = ViewContext;
RazorPageActivator.cs (1)
58public void Activate(IRazorPage page, ViewContext context)
RazorPageBase.cs (10)
46public virtual ViewContext ViewContext { get; set; } = default!; 62var viewContext = ViewContext; 215/// All writes to the <see cref="Output"/> or <see cref="ViewContext.Writer"/> after calling this method will 220var viewContext = ViewContext; 263/// All writes to the <see cref="Output"/> or <see cref="ViewContext.Writer"/> after calling this method will 276var viewContext = ViewContext; 325var viewContext = ViewContext; 337var viewContext = ViewContext; 354var viewContext = ViewContext; 713var viewContext = ViewContext;
RazorPagePropertyActivator.cs (12)
22private readonly PropertyActivator<ViewContext>[] _propertyActivators; 38_propertyActivators = PropertyActivator<ViewContext>.GetPropertiesToActivate<RazorInjectAttribute>( 44public void Activate(object page, ViewContext context) 57internal ViewDataDictionary CreateViewDataDictionary(ViewContext context) 75private static PropertyActivator<ViewContext> CreateActivateInfo( 80Func<ViewContext, object> valueAccessor; 134return new PropertyActivator<ViewContext>(property, valueAccessor); 139public Func<ViewContext, object> UrlHelperAccessor { get; init; } = default!; 141public Func<ViewContext, object> JsonHelperAccessor { get; init; } = default!; 143public Func<ViewContext, object> DiagnosticSourceAccessor { get; init; } = default!; 145public Func<ViewContext, object> HtmlEncoderAccessor { get; init; } = default!; 147public Func<ViewContext, object> ModelExpressionProviderAccessor { get; init; } = default!;
RazorView.cs (7)
73internal Action<IRazorPage, ViewContext>? OnAfterPageActivated { get; set; } 76public virtual async Task RenderAsync(ViewContext context) 91ViewContext context, 138private async Task RenderPageCoreAsync(IRazorPage page, ViewContext context) 157private async Task RenderViewStartsAsync(ViewContext context) 195ViewContext context, 269private IRazorPage GetLayoutPage(ViewContext context, string executingFilePath, string layoutPath)
ServiceBasedTagHelperActivator.cs (1)
17public TTagHelper Create<TTagHelper>(ViewContext context) where TTagHelper : ITagHelper
TagHelperInitializerOfT.cs (3)
13private readonly Action<TTagHelper, ViewContext> _initializeDelegate; 19public TagHelperInitializer(Action<TTagHelper, ViewContext> action) 27public void Initialize(TTagHelper helper, ViewContext context)
TagHelpers\ITagHelperComponentPropertyActivator.cs (2)
17/// <param name="context">The <see cref="ViewContext"/> for the executing view.</param> 19void Activate(ViewContext context, ITagHelperComponent tagHelperComponent);
TagHelpers\TagHelperComponentPropertyActivator.cs (8)
18private readonly ConcurrentDictionary<Type, PropertyActivator<ViewContext>[]> _propertiesToActivate = new(); 19private readonly Func<Type, PropertyActivator<ViewContext>[]> _getPropertiesToActivate = GetPropertiesToActivate; 20private static readonly Func<PropertyInfo, PropertyActivator<ViewContext>> _createActivateInfo = CreateActivateInfo; 28public void Activate(ViewContext context, ITagHelperComponent tagHelperComponent) 43private static PropertyActivator<ViewContext> CreateActivateInfo(PropertyInfo property) 45return new PropertyActivator<ViewContext>(property, viewContext => viewContext); 48private static PropertyActivator<ViewContext>[] GetPropertiesToActivate(Type type) 50return PropertyActivator<ViewContext>.GetPropertiesToActivate(
TagHelpers\TagHelperComponentTagHelper.cs (1)
54public ViewContext ViewContext { get; set; } = default!;
TagHelpers\UrlResolutionTagHelper.cs (1)
114public ViewContext ViewContext { get; set; } = default!;
Microsoft.AspNetCore.Mvc.RazorPages (29)
Infrastructure\DefaultPageActivatorProvider.cs (12)
15private readonly Action<PageContext, ViewContext, object> _disposer = Dispose; 16private readonly Func<PageContext, ViewContext, object, ValueTask> _asyncDisposer = AsyncDispose; 17private readonly Func<PageContext, ViewContext, object, ValueTask> _syncAsyncDisposer = SyncAsyncDispose; 20public Func<PageContext, ViewContext, object> CreateActivator(CompiledPageActionDescriptor actionDescriptor) 36public Action<PageContext, ViewContext, object>? CreateReleaser(CompiledPageActionDescriptor actionDescriptor) 48public Func<PageContext, ViewContext, object, ValueTask>? CreateAsyncReleaser(CompiledPageActionDescriptor actionDescriptor) 65private static Func<PageContext, ViewContext, object> CreatePageFactory(Type pageTypeInfo) 68var parameter2 = Expression.Parameter(typeof(ViewContext), "viewContext"); 75.Lambda<Func<PageContext, ViewContext, object>>(newExpression, parameter1, parameter2) 80private static void Dispose(PageContext context, ViewContext viewContext, object page) 89private static ValueTask SyncAsyncDispose(PageContext context, ViewContext viewContext, object page) 95private static ValueTask AsyncDispose(PageContext context, ViewContext viewContext, object page)
Infrastructure\DefaultPageFactoryProvider.cs (3)
42public Func<PageContext, ViewContext, object> CreatePageFactory(CompiledPageActionDescriptor actionDescriptor) 70public Action<PageContext, ViewContext, object>? CreatePageDisposer(CompiledPageActionDescriptor descriptor) 77public Func<PageContext, ViewContext, object, ValueTask>? CreateAsyncPageDisposer(CompiledPageActionDescriptor descriptor)
Infrastructure\PageActionInvoker.cs (1)
28private ViewContext? _viewContext;
Infrastructure\PageActionInvokerCacheEntry.cs (4)
17Func<PageContext, ViewContext, object> pageFactory, 18Func<PageContext, ViewContext, object, ValueTask>? releasePage, 42public Func<PageContext, ViewContext, object> PageFactory { get; } 47public Func<PageContext, ViewContext, object, ValueTask>? ReleasePage { get; }
Infrastructure\PageResultExecutor.cs (1)
69var viewContext = result.Page.ViewContext;
Infrastructure\RazorPageAdapter.cs (1)
32public ViewContext ViewContext
IPageActivatorProvider.cs (3)
18Func<PageContext, ViewContext, object> CreateActivator(CompiledPageActionDescriptor descriptor); 25Action<PageContext, ViewContext, object>? CreateReleaser(CompiledPageActionDescriptor descriptor); 32Func<PageContext, ViewContext, object, ValueTask>? CreateAsyncReleaser(CompiledPageActionDescriptor descriptor)
IPageFactoryProvider.cs (3)
18Func<PageContext, ViewContext, object> CreatePageFactory(CompiledPageActionDescriptor descriptor); 25Action<PageContext, ViewContext, object>? CreatePageDisposer(CompiledPageActionDescriptor descriptor); 32Func<PageContext, ViewContext, object, ValueTask>? CreateAsyncPageDisposer(CompiledPageActionDescriptor descriptor)
PageBase.cs (1)
37public 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. 159public ViewContext ViewContext { get; set; }
CacheTagHelperBase.cs (1)
58public ViewContext ViewContext { get; set; }
ComponentTagHelper.cs (2)
29/// Gets or sets the <see cref="Rendering.ViewContext"/> for the current request. 33public ViewContext ViewContext { get; set; }
FormActionTagHelper.cs (2)
93/// Gets or sets the <see cref="Rendering.ViewContext"/> for the current request. 97public ViewContext ViewContext { get; set; }
FormTagHelper.cs (2)
47/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 51public ViewContext ViewContext { get; set; }
InputTagHelper.cs (2)
83/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 87public ViewContext ViewContext { get; set; }
LabelTagHelper.cs (2)
31/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 35public ViewContext ViewContext { get; set; }
OptionTagHelper.cs (2)
38/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 42public ViewContext ViewContext { get; set; }
PartialTagHelper.cs (3)
97/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 101public ViewContext ViewContext { get; set; } 203var partialViewContext = new ViewContext(ViewContext, view, newViewData, writer);
PersistComponentStateTagHelper.cs (2)
24/// Gets or sets the <see cref="Rendering.ViewContext"/> for the current request. 28public ViewContext ViewContext { get; set; }
RenderAtEndOfFormTagHelper.cs (2)
25/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 29public ViewContext ViewContext { get; set; }
ResourceCollectionUtilities.cs (1)
12internal static bool TryResolveFromAssetCollection(ViewContext viewContext, string url, out string resolvedUrl)
SelectTagHelper.cs (2)
44/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 48public ViewContext ViewContext { get; set; }
TextAreaTagHelper.cs (2)
36/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 40public ViewContext ViewContext { get; set; }
ValidationMessageTagHelper.cs (2)
33/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 37public ViewContext ViewContext { get; set; }
ValidationSummaryTagHelper.cs (2)
33/// Gets the <see cref="Rendering.ViewContext"/> of the executing view. 37public ViewContext ViewContext { get; set; }
Microsoft.AspNetCore.Mvc.ViewFeatures (193)
DefaultHtmlGenerator.cs (31)
126ViewContext viewContext, 146ViewContext viewContext, 165public virtual IHtmlContent GenerateAntiforgery(ViewContext viewContext) 188ViewContext viewContext, 234ViewContext viewContext, 256ViewContext viewContext, 295ViewContext viewContext, 313ViewContext viewContext, 329ViewContext viewContext, 361ViewContext viewContext, 399ViewContext viewContext, 424ViewContext viewContext, 487ViewContext viewContext, 506ViewContext viewContext, 530ViewContext viewContext, 597ViewContext viewContext, 685ViewContext viewContext, 711ViewContext viewContext, 802ViewContext viewContext, 901ViewContext viewContext, 1028internal static string EvalString(ViewContext viewContext, string key, string format) 1064internal static object GetModelStateValue(ViewContext viewContext, string key, Type destinationType) 1077/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 1088ViewContext viewContext, 1117/// <param name="viewContext">The <see cref="ViewContext"/>.</param> 1130ViewContext viewContext, 1361/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 1366ViewContext viewContext, 1408private static bool EvalBoolean(ViewContext viewContext, string key) 1413private static string EvalString(ViewContext viewContext, string key) 1486ViewContext viewContext,
DefaultHtmlGeneratorExtensions.cs (4)
17/// <param name="viewContext">The <see cref="ViewContext"/>.</param> 27ViewContext viewContext, 50/// <param name="viewContext">The <see cref="ViewContext"/>.</param> 59ViewContext viewContext,
DefaultValidationHtmlAttributeProvider.cs (1)
45ViewContext viewContext,
Diagnostics\MvcDiagnostics.cs (4)
237public BeforeViewEventData(IView view, ViewContext viewContext) 251public ViewContext ViewContext { get; } 280public AfterViewEventData(IView view, ViewContext viewContext) 294public ViewContext ViewContext { get; }
HtmlHelper.cs (6)
56private ViewContext _viewContext; 95public ViewContext ViewContext 181public virtual void Contextualize(ViewContext viewContext) 547var 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)
48public override void Contextualize(ViewContext viewContext) 56typeof(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> 65ViewContext viewContext, 78/// <param name="viewContext">The <see cref="ViewContext"/> instance for the current scope.</param> 99ViewContext viewContext, 112/// <param name="viewContext">The <see cref="ViewContext"/> instance for the current scope.</param> 117IHtmlContent GenerateAntiforgery(ViewContext viewContext); 122/// <param name="viewContext">The <see cref="ViewContext"/> instance for the current scope.</param> 134ViewContext viewContext, 146ViewContext viewContext, 154/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 172ViewContext viewContext, 183/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 202ViewContext viewContext, 214/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 231ViewContext viewContext, 240/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 253ViewContext viewContext, 263/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 275ViewContext viewContext, 284/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 296ViewContext viewContext, 305/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 318ViewContext viewContext, 328/// <param name="viewContext">The <see cref="ViewContext"/> instance for the current scope.</param> 348ViewContext viewContext, 360/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 392ViewContext viewContext, 403/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 441ViewContext viewContext, 466/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 479ViewContext viewContext, 489/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 502ViewContext 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> 532ViewContext viewContext, 554ViewContext viewContext, 563/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 595ViewContext 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> 18void Contextualize(ViewContext viewContext);
MvcViewFeaturesDiagnosticListenerExtensions.cs (4)
123ViewContext viewContext) 132private static void BeforeViewImpl(DiagnosticListener diagnosticListener, IView view, ViewContext viewContext) 145ViewContext viewContext) 154private 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> 32public static string CreateSanitizedId(ViewContext viewContext, string fullName, string invalidCharReplacement) 78/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 92ViewContext viewContext, 122/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 128public static string GetFullHtmlFieldName(ViewContext viewContext, string expression)
NullView.cs (1)
15public 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)
41ViewContext 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)
15private readonly ViewContext _viewContext; 23/// <param name="viewContext">The <see cref="ViewContext"/>.</param> 25public 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> 85ViewContext viewContext,
TemplateBuilder.cs (2)
18private readonly ViewContext _viewContext; 31ViewContext viewContext,
TemplateRenderer.cs (5)
73private readonly ViewContext _viewContext; 81ViewContext viewContext, 122var viewContext = new ViewContext(_viewContext, viewEngineResult.View, _viewData, writer); 238private static IHtmlHelper MakeHtmlHelper(ViewContext viewContext, ViewDataDictionary viewData) 244var 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> 28ViewContext viewContext, 37/// <param name="viewContext">A <see cref="ViewContext"/> instance for the current scope.</param> 51ViewContext viewContext,
ViewComponent.cs (1)
129public ViewContext ViewContext => ViewComponentContext.ViewContext;
ViewComponentResultExecutor.cs (2)
102var viewContext = new ViewContext( 136private static void OnExecuting(ViewContext viewContext)
ViewComponents\DefaultViewComponentHelper.cs (2)
26private ViewContext _viewContext = default!; 59public void Contextualize(ViewContext viewContext)
ViewComponents\ViewComponentContext.cs (3)
43ViewContext viewContext, 90/// Gets or sets the <see cref="Rendering.ViewContext"/>. 95public ViewContext ViewContext { get; set; }
ViewComponents\ViewViewComponentResult.cs (2)
73var viewContext = context.ViewContext; 118var 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> 25Task RenderAsync(ViewContext context);
ViewExecutor.cs (4)
157var viewContext = new ViewContext( 171/// <param name="viewContext">The <see cref="ViewContext"/> associated with the current request.</param> 181ViewContext viewContext, 233private static void OnExecuting(ViewContext viewContext)