> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class MatchTypeObjAttribute

Namespace: [VM.API.Pre](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre)\
Assembly: VM.API.Pre.dll

This class implements attribute for Object of argument [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md) is matched with target type.

```csharp theme={null}
[Aspect(Scope.Global)]
[AttributeUsage(AttributeTargets.Method)]
[Injection(typeof(MatchTypeObjAttribute))]
public class MatchTypeObjAttribute : ValidationAttribute
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Attribute](https://learn.microsoft.com/dotnet/api/system.attribute) ←
ValidationAttribute ←
[MatchTypeObjAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.MatchTypeObjAttribute.md)

#### Inherited Members

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

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### MatchTypeObjAttribute()

Initializes a new instance of the [MatchTypeObjAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.MatchTypeObjAttribute.md) class.

```csharp theme={null}
public MatchTypeObjAttribute()
```

### MatchTypeObjAttribute(params object\[])

Initializes a new instance of the [MatchTypeObjAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.MatchTypeObjAttribute.md) class.

```csharp theme={null}
public MatchTypeObjAttribute(params object[] list)
```

#### Parameters

`list` [object](https://learn.microsoft.com/dotnet/api/system.object)\[]

The target objects.

## Fields

### \_\_a\$\_instance

```csharp theme={null}
public static readonly MatchTypeObjAttribute __a$_instance
```

#### Field Value

[MatchTypeObjAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.MatchTypeObjAttribute.md)

## Methods

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

Check validation.

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

#### Parameters

`method` [MethodBase](https://learn.microsoft.com/dotnet/api/system.reflection.methodbase)

The method.

`argument` [object](https://learn.microsoft.com/dotnet/api/system.object)\[]

The argument.

`triggers` [Attribute](https://learn.microsoft.com/dotnet/api/system.attribute)\[]

The triggers

### ExecuteException(string)

Execute exception.

```csharp theme={null}
protected override void ExecuteException(string name)
```

#### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The argument name.

### ValidationCondition(ValidationAttribute, string, object)

validation condition.

```csharp theme={null}
protected override bool ValidationCondition(ValidationAttribute attribute, string paramName, object argument)
```

#### Parameters

`attribute` ValidationAttribute

The attribute.

`paramName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The parameter name.

`argument` [object](https://learn.microsoft.com/dotnet/api/system.object)

The argument.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

The flag for success.
