103 instantiations of RequiredAttribute
Aspire.Dashboard (4)
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Logging\RequestHeadersLogEnricherOptions.cs (1)
24[Required]
Microsoft.AspNetCore.Identity.UI (36)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
61[Required]
Areas\Identity\Pages\V4\Account\ForgotPassword.cshtml.cs (1)
39[Required]
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (1)
50[Required]
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (1)
45[Required]
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (1)
35[Required]
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (1)
56[Required]
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
65[Required]
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
41[Required]
Areas\Identity\Pages\V4\Account\ResendEmailConfirmation.cshtml.cs (1)
39[Required]
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
61[Required]
Areas\Identity\Pages\V5\Account\ForgotPassword.cshtml.cs (1)
39[Required]
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (1)
50[Required]
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (1)
45[Required]
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (1)
35[Required]
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (1)
56[Required]
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
65[Required]
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
41[Required]
Areas\Identity\Pages\V5\Account\ResendEmailConfirmation.cshtml.cs (1)
39[Required]
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.DotNet.HotReload.Watch (11)
Microsoft.Extensions.AI.Abstractions.Tests (8)
Microsoft.Extensions.AmbientMetadata.Application (2)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Http.Diagnostics (6)
Microsoft.Extensions.Http.Resilience (15)
Microsoft.Extensions.Telemetry (1)
Sampling\RandomProbabilisticSamplerOptions.cs (1)
18[Required]
Microsoft.Extensions.Telemetry.Abstractions (3)
Microsoft.Private.Windows.Core (4)
System.Private.Windows.Core (4)
57 references to RequiredAttribute
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (10)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Validation (7)
Shared (1)
System.ComponentModel.Annotations (25)
System\ComponentModel\DataAnnotations\Validator.cs (20)
30/// If there is a <see cref="RequiredAttribute" /> found on the property, it will be evaluated before all other
35/// If <paramref name="validationResults" /> is null and there isn't a <see cref="RequiredAttribute" /> failure,
79/// checks to ensure all properties marked with <see cref="RequiredAttribute" /> are set. It does not validate the
106/// checks to ensure all properties marked with <see cref="RequiredAttribute" /> are set. If
117/// For any given property, if it has a <see cref="RequiredAttribute" /> that fails validation, no other validators
166/// If there is a <see cref="RequiredAttribute" /> within the <paramref name="validationAttributes" />, it will
172/// If <paramref name="validationResults" /> is null and there isn't a <see cref="RequiredAttribute" /> failure,
304/// A <see cref="RequiredAttribute" /> within the <paramref name="validationAttributes" /> will always be evaluated
334/// If there is a <see cref="RequiredAttribute" /> found on the property, it will be evaluated before all other
384/// checks to ensure all properties marked with <see cref="RequiredAttribute" /> are set. It does not validate
412/// checks to ensure all properties marked with <see cref="RequiredAttribute" /> are set. If
784if (attribute is RequiredAttribute reqAttr)
823RequiredAttribute? required = null;
826required = attribute as RequiredAttribute;
1065/// ones marked with <see cref="RequiredAttribute" /> are not null.
1091if (attribute is RequiredAttribute reqAttr)
1149/// If a <see cref="RequiredAttribute" /> is found, it will be evaluated first, and if that fails,
1157/// <see cref="RequiredAttribute" /> failure will always abort with that sole failure.
1170RequiredAttribute? required = null;
1173required = attribute as RequiredAttribute;
System.ComponentModel.DataAnnotations (1)