Méthode | Description | |
---|---|---|
EnsureIsValid ( object obj ) : void |
Ensures the object is valid.
|
|
EnsureIsValid ( object obj, bool validateAllProperties ) : void |
Ensures the object is valid.
|
|
IsValid ( object obj ) : bool |
Determines whether the specified object passes validation without errors.
|
|
IsValid ( object obj, bool validateAllProperties ) : bool |
Determines whether the specified object passes validation without errors.
|
|
Validate ( object obj ) : IEnumerable |
Determines whether the specified object is valid and returns an list of ValidationResults.
|
|
Validate ( object obj, bool validateAllProperties ) : IEnumerable |
Determines whether the specified object is valid and returns an list of ValidationResults.
|
Méthode | Description | |
---|---|---|
CreateContextItems ( bool validateAllProperties ) : object>.IDictionary | ||
ShouldValidateAllProperties ( System.ComponentModel.DataAnnotations.ValidationContext context ) : bool | ||
TryGetSeenHashFrom ( System.ComponentModel.DataAnnotations.ValidationContext context ) : HashSet | ||
ValidateClass ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable |
||
ValidateProperties ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable |
||
ValidateRecursing ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable |
public static EnsureIsValid ( object obj ) : void | ||
obj | object | The object. |
Résultat | void |
public static EnsureIsValid ( object obj, bool validateAllProperties ) : void | ||
obj | object | The object. |
validateAllProperties | bool |
/// If |
Résultat | void |
public static IsValid ( object obj ) : bool | ||
obj | object | The object. |
Résultat | bool |
public static IsValid ( object obj, bool validateAllProperties ) : bool | ||
obj | object | The object. |
validateAllProperties | bool |
/// If |
Résultat | bool |
public static Validate ( object obj ) : IEnumerable |
||
obj | object | The object. |
Résultat | IEnumerable |
public static Validate ( object obj, bool validateAllProperties ) : IEnumerable |
||
obj | object | The object. |
validateAllProperties | bool |
/// If |
Résultat | IEnumerable |