76 references to Resources
Microsoft.AspNetCore.Mvc.ViewFeatures (75)
artifacts\obj\Microsoft.AspNetCore.Mvc.ViewFeatures\Release\net10.0\Microsoft.AspNetCore.Mvc.ViewFeatures.Resources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
Resources
)));
AttributeDictionary.cs (4)
163
Resources
.FormatPropertyOfTypeCannotBeNull(
176
throw new InvalidOperationException(
Resources
.FormatDictionary_DuplicateKey(item.Key));
194
Resources
.FormatPropertyOfTypeCannotBeNull(
252
Resources
.FormatPropertyOfTypeCannotBeNull(
Controller.cs (1)
55
throw new ArgumentException(
Resources
.ArgumentCannotBeNullOrEmpty, nameof(ViewData));
DefaultDisplayTemplates.cs (4)
66
new SelectListItem(
Resources
.Common_TriState_NotSet, string.Empty, !value.HasValue),
67
new SelectListItem(
Resources
.Common_TriState_True, "true", (value == true)),
68
new SelectListItem(
Resources
.Common_TriState_False, "false", (value == false)),
84
throw new InvalidOperationException(
Resources
.FormatTemplates_TypeMustImplementIEnumerable(
DefaultEditorTemplates.cs (1)
66
throw new InvalidOperationException(
Resources
.FormatTemplates_TypeMustImplementIEnumerable(
DefaultHtmlGenerator.cs (9)
546
Resources
.FormatHtmlGenerator_FieldNameCannotBeNullOrEmpty(
608
throw new ArgumentOutOfRangeException(nameof(rows),
Resources
.HtmlHelper_TextAreaParameterOutOfRange);
615
Resources
.HtmlHelper_TextAreaParameterOutOfRange);
623
Resources
.FormatHtmlGenerator_FieldNameCannotBeNullOrEmpty(
725
Resources
.FormatHtmlGenerator_FieldNameCannotBeNullOrEmpty(
946
Resources
.FormatHtmlHelper_SelectExpressionNotEnumerable(nameof(expression)));
1151
Resources
.FormatHtmlGenerator_FieldNameCannotBeNullOrEmpty(
1499
throw new InvalidOperationException(
Resources
.FormatHtmlHelper_MissingSelectData(
1507
throw new InvalidOperationException(
Resources
.FormatHtmlHelper_WrongSelectDataType(
DynamicViewData.cs (1)
31
throw new InvalidOperationException(
Resources
.DynamicViewData_ViewDataNull);
ExpressionHelper.cs (2)
208
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
226
Resources
.FormatExpressionHelper_InvalidIndexerExpression(indexExpression, parameters[0].Name),
ExpressionMetadataProvider.cs (1)
72
throw new InvalidOperationException(
Resources
.TemplateHelpers_TemplateLimitations);
Filters\SaveTempDataPropertyFilterBase.cs (2)
128
Resources
.FormatTempDataProperties_PublicGetterSetter(property.DeclaringType.FullName, property.Name, nameof(TempDataAttribute)));
135
var errorMessage =
Resources
.FormatTempDataProperties_InvalidType(
HtmlHelper.cs (5)
101
throw new InvalidOperationException(
Resources
.HtmlHelper_NotContextualized);
372
var message =
Resources
.FormatHtmlHelper_TypeNotSupported_ForGetEnumSelectList(
390
var message =
Resources
.FormatHtmlHelper_TypeNotSupported_ForGetEnumSelectList(
537
Resources
.FormatViewEngine_PartialViewNotFound(partialViewName, locations));
1374
var message =
Resources
.FormatHtmlHelper_TypeNotSupported_ForGetEnumSelectList(
HtmlHelperOfT.cs (2)
54
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
80
throw new ArgumentException(
Resources
.FormatArgumentPropertyUnexpectedType(
Infrastructure\DefaultTempDataSerializer.cs (3)
71
throw new InvalidOperationException(
Resources
.FormatTempData_CannotDeserializeType(item.Value.ValueKind));
114
throw new InvalidOperationException(
Resources
.FormatTempData_CannotDeserializeType(arrayElement.ValueKind));
151
Resources
.FormatTempData_CannotSerializeType(
ModelExpressionProvider.cs (2)
57
Resources
.FormatCreateModelExpression_NullModelMetadata(nameof(IModelMetadataProvider), name));
82
Resources
.FormatCreateModelExpression_NullModelMetadata(nameof(IModelMetadataProvider), expression));
PageRemoteAttribute.cs (2)
9
using Resources = Microsoft.AspNetCore.Mvc.ViewFeatures.
Resources
;
51
throw new InvalidOperationException(
Resources
.RemoteAttribute_NoUrlFound);
RemoteAttribute.cs (2)
9
using Resources = Microsoft.AspNetCore.Mvc.ViewFeatures.
Resources
;
123
throw new InvalidOperationException(
Resources
.RemoteAttribute_NoUrlFound);
RemoteAttributeBase.cs (2)
16
using Resources = Microsoft.AspNetCore.Mvc.ViewFeatures.
Resources
;
37
: base(errorMessageAccessor: () =>
Resources
.RemoteAttribute_RemoteValidationFailed)
Rendering\TagBuilder.cs (1)
50
throw new ArgumentException(
Resources
.ArgumentCannotBeNullOrEmpty, nameof(tagBuilder));
TemplateRenderer.cs (1)
137
Resources
.FormatTemplateHelpers_NoTemplate(_viewData.ModelExplorer.ModelType.FullName));
ViewComponentResultExecutor.cs (1)
146
throw new InvalidOperationException(
Resources
.FormatViewComponentResult_NameOrTypeMustBeSet(
ViewComponents\DefaultViewComponentActivator.cs (1)
43
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
ViewComponents\DefaultViewComponentDescriptorProvider.cs (5)
75
Resources
.FormatViewComponent_CannotFindMethod(SyncMethodName, AsyncMethodName, componentName));
80
Resources
.FormatViewComponent_AmbiguousMethods(componentName, AsyncMethodName, SyncMethodName));
89
throw new InvalidOperationException(
Resources
.FormatViewComponent_AsyncMethod_ShouldReturnTask(
100
throw new InvalidOperationException(
Resources
.FormatViewComponent_SyncMethod_ShouldReturnValue(
106
throw new InvalidOperationException(
Resources
.FormatViewComponent_SyncMethod_CannotReturnTask(
ViewComponents\DefaultViewComponentHelper.cs (3)
74
throw new InvalidOperationException(
Resources
.FormatViewComponent_CannotFindComponent(
105
throw new InvalidOperationException(
Resources
.FormatViewComponent_CannotFindComponent(
142
Resources
.FormatViewComponent_IViewComponentFactory_ReturnedNull(descriptor.FullName));
ViewComponents\DefaultViewComponentInvoker.cs (6)
61
throw new InvalidOperationException(
Resources
.ViewComponent_MustReturnValue);
110
throw new InvalidOperationException(
Resources
.ViewComponent_MustReturnValue);
120
throw new InvalidOperationException(
Resources
.ViewComponent_MustReturnValue);
130
throw new InvalidOperationException(
Resources
.ViewComponent_MustReturnValue);
174
throw new InvalidOperationException(
Resources
.ViewComponent_MustReturnValue);
192
throw new InvalidOperationException(
Resources
.FormatViewComponent_InvalidReturnValue(
ViewComponents\DefaultViewComponentSelector.cs (2)
95
matchedTypes.Add(
Resources
.FormatViewComponent_AmbiguousTypeMatch_Item(
102
Resources
.FormatViewComponent_AmbiguousTypeMatch(name, Environment.NewLine, typeNames));
ViewComponents\ViewComponentInvokerCache.cs (1)
52
throw new InvalidOperationException(
Resources
.FormatPropertyOfTypeCannotBeNull(
ViewDataDictionary.cs (2)
494
message =
Resources
.FormatViewData_ModelCannotBeNull(_declaredModelType);
498
message =
Resources
.FormatViewData_WrongTModelType(value.GetType(), _declaredModelType);
ViewDataDictionaryControllerPropertyActivator.cs (1)
58
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
ViewEngines\CompositeViewEngine.cs (3)
35
throw new InvalidOperationException(
Resources
.FormatViewEnginesAreRequired(
51
throw new InvalidOperationException(
Resources
.FormatAsyncDisposableViewsNotSupported(typeof(IAsyncDisposable).FullName));
84
throw new InvalidOperationException(
Resources
.FormatViewEnginesAreRequired(
ViewEngines\ViewEngineResult.cs (1)
106
throw new InvalidOperationException(
Resources
.FormatViewEngine_ViewNotFound(ViewName, locations));
ViewExecutor.cs (3)
134
throw new InvalidOperationException(
Resources
.FormatPropertyOfTypeCannotBeNull(nameof(ViewOptions), GetType().Name));
139
throw new InvalidOperationException(
Resources
.FormatPropertyOfTypeCannotBeNull(nameof(TempDataFactory), GetType().Name));
144
throw new InvalidOperationException(
Resources
.FormatPropertyOfTypeCannotBeNull(nameof(ModelMetadataProvider), GetType().Name));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
PageRemoteAttributeTest.cs (1)
91
Resources
.RemoteAttribute_NoUrlFound);