9 writes to ViewComponentType
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
1261
ViewComponentType
= componentType,
PageModel.cs (1)
1619
ViewComponentType
= componentType,
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Controller.cs (1)
274
ViewComponentType
= componentType,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ViewComponentResultTest.cs (5)
157
ViewComponentType
= typeof(TextViewComponent),
382
ViewComponentType
= typeof(TextViewComponent),
424
ViewComponentType
= typeof(TextViewComponent),
466
ViewComponentType
= typeof(TextViewComponent),
497
ViewComponentType
= typeof(TextViewComponent),
RazorPagesWebSite (1)
Pages\ViewData\ViewDataToViewComponentPage.cs (1)
23
ViewComponentType
= typeof(ViewDataViewComponent),
12 references to ViewComponentType
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
PageModelTest.cs (2)
2024
Assert.Equal(typeof(Guid), result.
ViewComponentType
);
2041
Assert.Equal(typeof(Guid), result.
ViewComponentType
);
PageTest.cs (2)
1799
Assert.Equal(typeof(Guid), result.
ViewComponentType
);
1824
Assert.Equal(typeof(Guid), result.
ViewComponentType
);
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
ViewComponentResult.cs (1)
28
/// Gets or sets the name of the view component to invoke. Will be ignored if <see cref="
ViewComponentType
"/>
ViewComponentResultExecutor.cs (5)
144
if (result.
ViewComponentType
== null && result.ViewComponentName == null)
148
nameof(ViewComponentResult.
ViewComponentType
)));
150
else if (result.
ViewComponentType
== null)
157
Log.ViewComponentResultExecuting(logger, result.
ViewComponentType
);
158
return viewComponentHelper.InvokeAsync(result.
ViewComponentType
, result.Arguments);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
663
Assert.Equal(typeof(TagCloudViewComponent), result.
ViewComponentType
);
678
Assert.Equal(typeof(TagCloudViewComponent), result.
ViewComponentType
);