17 overrides of IsValid
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Metadata\ModelAttributesTest.cs (1)
371
public override bool
IsValid
(object value)
ModelBinding\ParameterBinderTest.cs (1)
883
public override bool
IsValid
(object value)
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
TryValidateModelIntegrationTest.cs (1)
186
public override bool
IsValid
(object value)
ValidationIntegrationTests.cs (1)
2132
public override bool
IsValid
(object value)
ValidationWithRecordIntegrationTests.cs (1)
1923
public override bool
IsValid
(object value)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
RemoteAttributeBase.cs (1)
127
public override bool
IsValid
(object? value)
System.ComponentModel.Annotations (11)
System\ComponentModel\DataAnnotations\AllowedValuesAttribute.cs (1)
44
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\Base64StringAttribute.cs (1)
36
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\DataTypeAttribute.cs (1)
104
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\DeniedValuesAttribute.cs (1)
44
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
49
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
66
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\MinLengthAttribute.cs (1)
49
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
131
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
56
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\RequiredAttribute.cs (1)
38
public override bool
IsValid
(object? value)
System\ComponentModel\DataAnnotations\StringLengthAttribute.cs (1)
45
public override bool
IsValid
(object? value)
18 references to IsValid
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
DataAnnotationsModelValidatorTest.cs (2)
132
attribute.Setup(a => a.
IsValid
(model)).Returns(true);
161
attribute.Setup(a => a.
IsValid
(model)).Returns(false);
System.ComponentModel.Annotations (16)
System\ComponentModel\DataAnnotations\AllowedValuesAttribute.cs (1)
33
/// Determines whether a specified object is valid. (Overrides <see cref="ValidationAttribute.
IsValid
(object)" />)
System\ComponentModel\DataAnnotations\Base64StringAttribute.cs (1)
29
/// Determines whether a specified object is valid. (Overrides <see cref="ValidationAttribute.
IsValid
(object)" />)
System\ComponentModel\DataAnnotations\DataTypeAttribute.cs (1)
98
/// Override of <see cref="ValidationAttribute.
IsValid
(object)" />
System\ComponentModel\DataAnnotations\DeniedValuesAttribute.cs (1)
33
/// Determines whether a specified object is valid. (Overrides <see cref="ValidationAttribute.
IsValid
(object)" />)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
34
/// Determines whether a specified object is valid. (Overrides <see cref="ValidationAttribute.
IsValid
(object)" />)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
54
/// Determines whether a specified object is valid. (Overrides <see cref="ValidationAttribute.
IsValid
(object)" />)
System\ComponentModel\DataAnnotations\MinLengthAttribute.cs (1)
36
/// Determines whether a specified object is valid. (Overrides <see cref="ValidationAttribute.
IsValid
(object)" />)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
47
/// Override of <see cref="ValidationAttribute.
IsValid
(object)" />
System\ComponentModel\DataAnnotations\RequiredAttribute.cs (1)
31
/// Override of <see cref="ValidationAttribute.
IsValid
(object)" />
System\ComponentModel\DataAnnotations\StringLengthAttribute.cs (1)
36
/// Override of <see cref="ValidationAttribute.
IsValid
(object)" />
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (6)
370
/// Derived classes should override this method instead of <see cref="
IsValid
(object)" />, which is deprecated.
399
return
IsValid
(value)
457
/// This base method invokes the <see cref="
IsValid
(object)" /> method to determine whether or not the
458
/// <paramref name="value" /> is acceptable. If <see cref="
IsValid
(object)" /> returns <c>false</c>, this base
465
/// is thrown if <see cref="
IsValid
(object)" /> returns <c>false</c>.
470
if (!
IsValid
(value))