Tab

CheckBoxRequiredAttribute Members

Specifies that the check box is required.

Constructors

Name Description
CheckBoxRequiredAttribute(CheckBoxValidStateMode) Initializes a new instance of the CheckBoxRequiredAttribute class.

Properties

Name Description
ErrorMessage Gets or sets an error message to associate with a validation control if validation fails. Inherited from ValidationAttribute.
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.
ErrorMessageResourceType Gets or sets the resource type to use for error-message lookup if validation fails. Inherited from ValidationAttribute.
ErrorMessageString protected Gets the localized validation error message. Inherited from ValidationAttribute.
RequiresValidationContext Gets a value that indicates whether the attribute requires validation context. Inherited from ValidationAttribute.
TypeId When implemented in a derived class, gets a unique identifier for this Attribute. Inherited from Attribute.
ValidStateMode Gets the check box’s valid state.

Methods

Name Description
Equals(Object) Returns a value that indicates whether this instance is equal to a specified object. Inherited from Attribute.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
FormatErrorMessage(String) Applies formatting to an error message, based on the data field where the error occurred. Inherited from ValidationAttribute.
GetCustomAttribute(Assembly, Type) static Retrieves a custom attribute applied to a specified assembly. Parameters specify the assembly and the type of the custom attribute to search for. Inherited from Attribute.
GetCustomAttribute(Assembly, Type, Boolean) static Retrieves a custom attribute applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option. Inherited from Attribute.
GetCustomAttribute(MemberInfo, Type) static Retrieves a custom attribute applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for. Inherited from Attribute.
GetCustomAttribute(MemberInfo, Type, Boolean) static Retrieves a custom attribute applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. Inherited from Attribute.
GetCustomAttribute(Module, Type) static Retrieves a custom attribute applied to a module. Parameters specify the module, and the type of the custom attribute to search for. Inherited from Attribute.
GetCustomAttribute(Module, Type, Boolean) static Retrieves a custom attribute applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option. Inherited from Attribute.
GetCustomAttribute(ParameterInfo, Type) static Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for. Inherited from Attribute.