IRM.ComponentModel.DataAnnotations
- AllowedIfNotNull: Specifies that a field is only allowed if one or more of the dependent properties is not null.
- AllowedIfTrueAttribute: Specifies that a field is only allowed if the dependent property is true.
- EmailAddressAttribute: Validates an email address.
- LuhnAttribute: Checks that a value is valid according to the Luhn algoritm.
- RequiredIfAttribute: Specifies that a field is required if a dependent property has one of the provided values.
- RequiredIfFalseAttribute: Specifies that a field is required if a dependent property is false.
- RequiredIfNotNull: Specifies that a field is required if one or more of the dependent properties is not null.
- RequiredIfTrueAttribute: Specifies that a field is required if a dependent property is true.
- SwedishOrganizationalNumberAttribute: Checks that a value is valid swedish organizational number.
- SwedishPersonNumberAttribute: Checks that a value is valid swedish social security number.
- VatNumberAttribute: Checks that a VAT number is correctly formed.
- ZipCodeAttribute: Checks that a Zip code is correct depending on the country. Validerar postnummer från hela världen.
Utöver dessa valideringsattribut finns även några ytterligare klasser:
- ValidationResults: Represents a container for one or more
. - ValidationException: Represents the exception that is thrown when one or more properties is not valid.