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