Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class GreaterThanOrEqualToSomeValueAttribute

Last update: 16.07.2025

Namespace: VM.Models.Pre
Assembly: VM.Models.Pre.dll

This class implements attribute for Limit >= some value.

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

Inheritance

objectAttribute ← ValidationAttribute ← GreaterThanOrEqualToSomeValueAttribute

Inherited Members

ValidationAttribute.CheckValidationCore(Attribute[], MethodBase, object[]), ValidationAttribute.ValidationCondition(ValidationAttribute, string, object), ValidationAttribute.ExecuteException(string), ValidationAttribute.Names

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

GreaterThanOrEqualToSomeValueAttribute()

Initializes a new instance of the class.

public GreaterThanOrEqualToSomeValueAttribute()

GreaterThanOrEqualToSomeValueAttribute(string, int)

Initializes a new instance of the class.

public GreaterThanOrEqualToSomeValueAttribute(string name, int someValue)

Parameters

name string

The target name

someValue int

The some value to based on.

Fields

__a$_instance

public static readonly GreaterThanOrEqualToSomeValueAttribute __a$_instance

Field Value

GreaterThanOrEqualToSomeValueAttribute

Methods

CheckValidation(MethodBase, object[], Attribute[])

Check validation.

[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

ExecuteException(string)

Execute exception.

protected override void ExecuteException(string name)

Parameters

name string

The argument name.

ValidationCondition(ValidationAttribute, string, object)

validation condition.

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

Parameters

attribute ValidationAttribute

The attribute.

paramName string

The parameter name.

argument object

The argument.

Returns

bool

The flag for success.

Connect with Ansys