<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

EDD Scripting | NotNullOrEmptyCollectionAttribute Class

Validation attribute for not null or empty collections used with ScriptOptions.

Inheritance Hierarchy

System.Object
    System.Attribute
        System.ComponentModel.DataAnnotations.ValidationAttribute
            Compiled.EDD.Scripting.NotNullOrEmptyCollectionAttribute

Syntax

C# Copy
public sealed class NotNullOrEmptyCollectionAttribute : ValidationAttribute

The NotNullOrEmptyCollectionAttribute type exposes the following members.

Constructors

Name Description
pubMethod NotNullOrEmptyCollectionAttribute Initializes a new instance of the NotNullOrEmptyCollectionAttribute class.

Properties

Name Description
pubProperty AllowNullOrWhiteSpaceStrings Gets or sets a flag indicating whether the attribute should allow null or empty string values in the collection.
pubProperty AllowNullValues Gets or sets a flag indicating whether the attribute should allow null values in the collection.
pubProperty ErrorMessage Gets or sets an error message to associate with a validation control if validation fails.
(Inherited from ValidationAttribute)
pubProperty ErrorMessageResourceName Gets or sets the error message resource name to use in order to look up the ErrorMessageResourceType property value if validation fails.
(Inherited from ValidationAttribute)
pubProperty ErrorMessageResourceType Gets or sets the resource type to use for error-message lookup if validation fails.
(Inherited from ValidationAttribute)
pubProperty RequiresValidationContext Gets a value that indicates whether the attribute requires validation context.
(Inherited from ValidationAttribute)
pubProperty TypeId When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)

Methods

Name Description
pubMethod Equals Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
pubMethod FormatErrorMessage Applies formatting to an error message, based on the data field where the error occurred.
(Inherited from ValidationAttribute)
pubMethod GetHashCode Returns the hash code for this instance.
(Inherited from Attribute)
pubMethod GetType Gets the runtime type of the current instance.
(Inherited from Exception)
pubMethod GetValidationResult Checks whether the specified value is valid with respect to the current validation attribute.
(Inherited from ValidationAttribute)
pubMethod IsDefaultAttribute When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
pubMethod IsValid Determines whether the specified value of the object is valid.
(Overrides ValidationAttribute.IsValid(Object))
pubMethod Match When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
pubMethod ToString Returns a string that represents the current object.
(Inherited from Object)
pubMethod Validate(Object, ValidationContext) Validates the specified object.
(Inherited from ValidationAttribute)
pubMethod Validate(Object, String) Validates the specified object.
(Inherited from ValidationAttribute)

See Also

Reference
Compiled.EDD.Scripting Namespace