    

 ## On this page

  

 

 # Class LessThanOrEqualToSomeValueAttribute

 Last update: 09.03.2026 

<a id="VM_Models_Pre_LessThanOrEqualToSomeValueAttribute"></a>

Namespace: [VM.Models.Pre](VM.Models.Pre.md)  
Assembly: VM.Models.Pre.dll

```csharp
[Aspect(Scope.Global)]
[AttributeUsage(AttributeTargets.Method)]
[Injection(typeof(LessThanOrEqualToSomeValueAttribute))]
public class LessThanOrEqualToSomeValueAttribute : ValidationAttribute

```

#### Inheritance

object ← Attribute ← [ValidationAttribute](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models/Models/Attributes/ValidationAttribute.cs) ← [LessThanOrEqualToSomeValueAttribute](VM.Models.Pre.LessThanOrEqualToSomeValueAttribute.md)

#### Inherited Members

[ValidationAttribute.CheckValidationCore(Attribute\[\], MethodBase, object\[\])](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models/Models/Attributes/ValidationAttribute.cs), [ValidationAttribute.ValidationCondition(ValidationAttribute, string, object)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models/Models/Attributes/ValidationAttribute.cs), [ValidationAttribute.ExecuteException(string)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models/Models/Attributes/ValidationAttribute.cs), [ValidationAttribute.Names](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models/Models/Attributes/ValidationAttribute.cs)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### <a id="VM_Models_Pre_LessThanOrEqualToSomeValueAttribute__ctor"></a> LessThanOrEqualToSomeValueAttribute()

Initializes a new instance of the  class.

```csharp
public LessThanOrEqualToSomeValueAttribute()

```

### <a id="VM_Models_Pre_LessThanOrEqualToSomeValueAttribute__ctor_System_String_System_Int32_"></a> LessThanOrEqualToSomeValueAttribute(string, int)

Initializes a new instance of the  class.

```csharp
public LessThanOrEqualToSomeValueAttribute(string name, int someValue)

```

#### Parameters

`name` string

The target name

`someValue` int

The some value to based on.

## Fields

### <a id="VM_Models_Pre_LessThanOrEqualToSomeValueAttribute___a__instance"></a> \_\_a$\_instance

```csharp
public static readonly LessThanOrEqualToSomeValueAttribute __a$_instance

```

#### Field Value

[LessThanOrEqualToSomeValueAttribute](VM.Models.Pre.LessThanOrEqualToSomeValueAttribute.md)

## Methods

### <a id="VM_Models_Pre_LessThanOrEqualToSomeValueAttribute_CheckValidation_System_Reflection_MethodBase_System_Object___System_Attribute___"></a> CheckValidation(MethodBase, object\[\], Attribute\[\])

Check validation.

```csharp
[Advice(Kind.Before, Targets = Target.Any)]
public void CheckValidation(MethodBase method, object[] argument, Attribute[] triggers)

```

#### Parameters

`method` MethodBase

The method.

`argument` object\[\]

The argument.

`triggers` Attribute\[\]

The triggers

### <a id="VM_Models_Pre_LessThanOrEqualToSomeValueAttribute_ExecuteException_System_String_"></a> ExecuteException(string)

Execute exception.

```csharp
protected override void ExecuteException(string name)

```

#### Parameters

`name` string

The argument name.

### <a id="VM_Models_Pre_LessThanOrEqualToSomeValueAttribute_ValidationCondition_VM_Models_ValidationAttribute_System_String_System_Object_"></a> ValidationCondition(ValidationAttribute, string, object)

validation condition.

```csharp
protected override bool ValidationCondition(ValidationAttribute attribute, string paramName, object argument)

```

#### Parameters

`attribute` [ValidationAttribute](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models/Models/Attributes/ValidationAttribute.cs)

The attribute.

`paramName` string

The parameter name.

`argument` object

The argument.

#### Returns

bool

The flag for success.