44 references to Success
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
ValidatableObjectAdapter.cs (1)
49if (result != ValidationResult.Success)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
DataAnnotationsModelValidatorTest.cs (2)
102.Returns(ValidationResult.Success) 194.Returns(ValidationResult.Success);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ValidationIntegrationTests.cs (1)
1315return ValidationResult.Success;
ValidationWithRecordIntegrationTests.cs (1)
1165return ValidationResult.Success;
Microsoft.Extensions.Compliance.Redaction (4)
src\Shared\Data.Validation\LengthAttribute.cs (2)
109return ValidationResult.Success!; 187return ValidationResult.Success!;
src\Shared\Data.Validation\TimeSpanAttribute.cs (2)
127return ValidationResult.Success!; 155return ValidationResult.Success!;
Microsoft.Extensions.Diagnostics.Probes (4)
src\Shared\Data.Validation\LengthAttribute.cs (2)
109return ValidationResult.Success!; 187return ValidationResult.Success!;
src\Shared\Data.Validation\TimeSpanAttribute.cs (2)
127return ValidationResult.Success!; 155return ValidationResult.Success!;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
src\Shared\Data.Validation\LengthAttribute.cs (2)
109return ValidationResult.Success!; 187return ValidationResult.Success!;
src\Shared\Data.Validation\TimeSpanAttribute.cs (2)
127return ValidationResult.Success!; 155return ValidationResult.Success!;
Microsoft.Extensions.Http.Resilience (4)
src\Shared\Data.Validation\LengthAttribute.cs (2)
109return ValidationResult.Success!; 187return ValidationResult.Success!;
src\Shared\Data.Validation\TimeSpanAttribute.cs (2)
127return ValidationResult.Success!; 155return ValidationResult.Success!;
Microsoft.Extensions.Telemetry (4)
src\Shared\Data.Validation\LengthAttribute.cs (2)
109return ValidationResult.Success!; 187return ValidationResult.Success!;
src\Shared\Data.Validation\TimeSpanAttribute.cs (2)
127return ValidationResult.Success!; 155return ValidationResult.Success!;
Shared (4)
Data.Validation\LengthAttribute.cs (2)
109return ValidationResult.Success!; 187return ValidationResult.Success!;
Data.Validation\TimeSpanAttribute.cs (2)
127return ValidationResult.Success!; 155return ValidationResult.Success!;
Shared.Tests (2)
Data.Validation\LengthAttributeTests.cs (1)
375Assert.NotEqual(ValidationResult.Success, result);
Data.Validation\TimeSpanAttributeTests.cs (1)
252Assert.NotEqual(ValidationResult.Success, result);
System.ComponentModel.Annotations (13)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
43/// If the method returns <see cref="ValidationResult" />.<see cref="ValidationResult.Success" />, that indicates
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (7)
364return IsValid(value, null!) == ValidationResult.Success; 379/// When validation is valid, <see cref="ValidationResult.Success" />. 400? ValidationResult.Success 409/// If this method returns <see cref="ValidationResult.Success" />, then validation was successful, otherwise 419/// When validation is valid, <see cref="ValidationResult.Success" />. 483/// If that method doesn't return <see cref="ValidationResult.Success" />, this base method will throw 490/// doesn't return <see cref="ValidationResult.Success" />.
System\ComponentModel\DataAnnotations\ValidationResult.cs (2)
11/// Use the static <see cref="ValidationResult.Success" /> to represent successful validation. 24/// should compare the values to <see cref="ValidationResult.Success" /> rather than checking for null.
System\ComponentModel\DataAnnotations\Validator.cs (3)
438if (result != ValidationResult.Success) 487if (validationResult != ValidationResult.Success) 616if (validationResult != ValidationResult.Success)