RuleValueComparisonAttribute Members

Defines a validation rule that demands the target property's value satisfy a specified condition.

Constructors

Name Description
RuleValueComparisonAttribute(DefaultContexts, ValueComparisonType, Object)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(String, DefaultContexts, ValueComparisonType, Object)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(String, DefaultContexts, ValueComparisonType, Object, String)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(String, DefaultContexts, ValueComparisonType, String, ParametersMode)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(String, DefaultContexts, ValueComparisonType, String, String, ParametersMode)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(String, String, ValueComparisonType, Object)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(String, String, ValueComparisonType, Object, String)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(String, String, ValueComparisonType, String, ParametersMode)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(String, String, ValueComparisonType, String, String, ParametersMode)

Initializes a new instance of the RuleValueComparisonAttribute class.

RuleValueComparisonAttribute(ValueComparisonType, Object)

Initializes a new instance of the RuleValueComparisonAttribute class.

Properties

Name Description
CustomMessageTemplate

Specifies informational text to be added to the exception message, when the current rule is broken.

(Inherited from RuleBaseAttribute)
InvertResult

Specifies whether the current rule should be inverted, to be checked.

(Inherited from RuleBaseAttribute)
IsCollectionAggregateSet

Indicates whether a value is assigned to the RuleValueComparisonAttribute.TargetCollectionAggregate property.

Name

Specifies a name of the rule created using the current attribute.

(Inherited from RuleBaseAttribute)
ResultType

Specifies the application behavior when the rule is broken.

(Inherited from RuleBaseAttribute)
SkipNullOrEmptyValues

Specifies whether the current rule is checked for the properties that are set to null (Nothing in VB), an empty string (for string type propeties) or a minimal date (for DateTime type properties).

(Inherited from RuleBaseAttribute)
TargetCollectionAggregate

Specifies the aggregate function to be checked by the current rule.

TargetContextIDs

Specifies a context for checking the current Rule.

(Inherited from RuleBaseAttribute)
TargetCriteria

Specifies a criterion that must be satisfied by the validated object or property to check rules.

(Inherited from RuleBaseAttribute)
TargetPropertyName

Specifies the target collection's element property that must be checked by the current rule.

TypeId When implemented in a derived class, gets a unique identifier for this .
(Inherited from Attribute)

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) Determines whether the specified object instances are considered equal.
(Inherited from Object)
GetCustomAttribute(Assembly, Type) 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) 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) 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) 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) 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) 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) 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)
GetCustomAttribute(ParameterInfo, Type, Boolean) Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter.
(Inherited from Attribute)
GetCustomAttributes(Assembly) Retrieves an array of the custom attributes applied to an assembly. A parameter specifies the assembly.
(Inherited from Attribute)
GetCustomAttributes(Assembly, Boolean) Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and an ignored search option.
(Inherited from Attribute)
GetCustomAttributes(Assembly, Type) Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for.
(Inherited from Attribute)
GetCustomAttributes(Assembly, Type, Boolean) Retrieves an array of the custom attributes 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)
GetCustomAttributes(MemberInfo) Retrieves an array of the custom attributes applied to a member of a type. A parameter specifies the member.
(Inherited from Attribute)
GetCustomAttributes(MemberInfo, Boolean) Retrieves an array of the custom attributes 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)
GetCustomAttributes(MemberInfo, Type) Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for.
(Inherited from Attribute)
GetCustomAttributes(MemberInfo, Type, Boolean) Retrieves an array of the custom attributes 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)
GetCustomAttributes(Module) Retrieves an array of the custom attributes applied to a module. A parameter specifies the module.
(Inherited from Attribute)
GetCustomAttributes(Module, Boolean) Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and an ignored search option.
(Inherited from Attribute)
GetCustomAttributes(Module, Type) Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and the type of the custom attribute to search for.
(Inherited from Attribute)
GetCustomAttributes(Module, Type, Boolean) Retrieves an array of the custom attributes 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)
GetCustomAttributes(ParameterInfo) Retrieves an array of the custom attributes applied to a method parameter. A parameter specifies the method parameter.
(Inherited from Attribute)
GetCustomAttributes(ParameterInfo, Boolean) Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and whether to search ancestors of the method parameter.
(Inherited from Attribute)
GetCustomAttributes(ParameterInfo, Type) Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for.
(Inherited from Attribute)
GetCustomAttributes(ParameterInfo, Type, Boolean) Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter.
(Inherited from Attribute)
GetHashCode() Returns the hash code for this instance.
(Inherited from Attribute)
GetType() Gets the of the current instance.
(Inherited from Object)
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)
IsDefined(Assembly, Type) Determines whether any custom attributes are applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for.
(Inherited from Attribute)
IsDefined(Assembly, Type, Boolean) Determines whether any custom attributes are 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)
IsDefined(MemberInfo, Type) Determines whether any custom attributes are applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for.
(Inherited from Attribute)
IsDefined(MemberInfo, Type, Boolean) Determines whether any custom attributes are 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)
IsDefined(Module, Type) Determines whether any custom attributes of a specified type are applied to a module. Parameters specify the module, and the type of the custom attribute to search for.
(Inherited from Attribute)
IsDefined(Module, Type, Boolean) Determines whether any custom attributes are 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)
IsDefined(ParameterInfo, Type) Determines whether any custom attributes are applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for.
(Inherited from Attribute)
IsDefined(ParameterInfo, Type, Boolean) Determines whether any custom attributes are applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter.
(Inherited from Attribute)
Match(Object) When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
MemberwiseClone() Creates a shallow copy of the current .
(Inherited from Object)
ReferenceEquals(Object, Object) Determines whether the specified instances are the same instance.
(Inherited from Object)
ToString() Returns a string that represents the current object.
(Inherited from Object)
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) Maps a set of names to a corresponding set of dispatch identifiers.
(Inherited from Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) Retrieves the type information for an object, which can be used to get the type information for an interface.
(Inherited from Attribute)
_Attribute.GetTypeInfoCount(UInt32) Retrieves the number of type information interfaces that an object provides (either 0 or 1).
(Inherited from Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) Provides access to properties and methods exposed by an object.
(Inherited from Attribute)
See Also