> ## 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 LinkUpdateAttribute

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

```csharp theme={null}
[Aspect(Scope.PerInstance)]
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
[Injection(typeof(LinkUpdateAttribute))]
[Mixin(typeof(ILinkUpdateOwner))]
public class LinkUpdateAttribute : LinkBaseAttribute, ILinkUpdateOwner
```

#### Inheritance

object ←
Attribute ←
[LinkBaseAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md) ←
[LinkUpdateAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md)

#### Derived

[LinkDestroyAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md)

#### Implements

ILinkUpdateOwner

#### Inherited Members

[LinkBaseAttribute.Dispose()](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md#VM_Models_Pre_LinkBaseAttribute_Dispose),
[LinkBaseAttribute.Initialize(object)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md#VM_Models_Pre_LinkBaseAttribute_Initialize_System_Object_),
[LinkBaseAttribute.AddCache(string, IDisposable)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md#VM_Models_Pre_LinkBaseAttribute_AddCache_System_String_System_IDisposable_),
[LinkBaseAttribute.DisposeManagedResources()](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md#VM_Models_Pre_LinkBaseAttribute_DisposeManagedResources),
[LinkBaseAttribute.InitializeProperty(object, IEnumerable\<PropertyInfo>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md#VM_Models_Pre_LinkBaseAttribute_InitializeProperty_System_Object_System_Collections_Generic_IEnumerable_System_Reflection_PropertyInfo__),
[LinkBaseAttribute.Unsubscribe(string)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md#VM_Models_Pre_LinkBaseAttribute_Unsubscribe_System_String_),
[LinkBaseAttribute.CacheItems](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md#VM_Models_Pre_LinkBaseAttribute_CacheItems),
[LinkBaseAttribute.IsCacheEmpty](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkBaseAttribute.md#VM_Models_Pre_LinkBaseAttribute_IsCacheEmpty)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### LinkUpdateAttribute()

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

### LinkUpdateAttribute(Type)

```csharp theme={null}
public LinkUpdateAttribute(Type behaviorType)
```

#### Parameters

`behaviorType` Type

### LinkUpdateAttribute(LinkBehaviorType, params string\[])

```csharp theme={null}
public LinkUpdateAttribute(LinkBehaviorType linkBehaviorType, params string[] behaviorNames)
```

#### Parameters

`linkBehaviorType` LinkBehaviorType

`behaviorNames` string\[]

## Fields

### \_\_a\$\_instance

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

#### Field Value

[LinkUpdateAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md)

## Properties

### AfterEventName

```csharp theme={null}
protected virtual string AfterEventName { get; }
```

#### Property Value

string

### BeforeEventName

```csharp theme={null}
protected virtual string BeforeEventName { get; }
```

#### Property Value

string

### TypeId

```csharp theme={null}
public override object TypeId { get; }
```

#### Property Value

object

## Methods

### AfterSetter(object, string, object\[], Attribute\[])

```csharp theme={null}
[Advice(Kind.After, Targets = Target.AnyAccess|Target.Setter)]
public virtual void AfterSetter(object owner, string propertyName, object[] values, Attribute[] triggers)
```

#### Parameters

`owner` object

`propertyName` string

`values` object\[]

`triggers` Attribute\[]

### BeforeSetter(string)

```csharp theme={null}
[Advice(Kind.Before, Targets = Target.AnyAccess|Target.Setter)]
public virtual void BeforeSetter(string propertyName)
```

#### Parameters

`propertyName` string

### GetAfterBehavior\<TAttribute>(object, string, object, EventPattern\<LinkEventArgs>, TAttribute, bool)

```csharp theme={null}
protected Action GetAfterBehavior<TAttribute>(object owner, string propertyName, object link, EventPattern<LinkEventArgs> eventPattern, TAttribute attribute, bool isSwap) where TAttribute : LinkUpdateAttribute
```

#### Parameters

`owner` object

`propertyName` string

`link` object

`eventPattern` EventPattern\<LinkEventArgs>

`attribute` TAttribute

`isSwap` bool

#### Returns

Action

#### Type Parameters

`TAttribute`

### GetAfterSubscriber\<TAttribute>(object, string, object, TAttribute, bool)

```csharp theme={null}
protected IDisposable GetAfterSubscriber<TAttribute>(object owner, string propertyName, object link, TAttribute linkAttribute, bool isSwap) where TAttribute : LinkUpdateAttribute
```

#### Parameters

`owner` object

`propertyName` string

`link` object

`linkAttribute` TAttribute

`isSwap` bool

#### Returns

IDisposable

#### Type Parameters

`TAttribute`

### GetBeforeBehavior\<TAttribute>(object, string, object, EventPattern\<LinkEventArgs>, TAttribute, bool)

```csharp theme={null}
protected Action GetBeforeBehavior<TAttribute>(object owner, string propertyName, object link, EventPattern<LinkEventArgs> eventPattern, TAttribute attribute, bool isSwap) where TAttribute : LinkUpdateAttribute
```

#### Parameters

`owner` object

`propertyName` string

`link` object

`eventPattern` EventPattern\<LinkEventArgs>

`attribute` TAttribute

`isSwap` bool

#### Returns

Action

#### Type Parameters

`TAttribute`

### GetBeforeSubscriber\<TAttribute>(object, string, object, TAttribute, bool)

```csharp theme={null}
protected IDisposable GetBeforeSubscriber<TAttribute>(object owner, string propertyName, object link, TAttribute linkAttribute, bool isSwap) where TAttribute : LinkUpdateAttribute
```

#### Parameters

`owner` object

`propertyName` string

`link` object

`linkAttribute` TAttribute

`isSwap` bool

#### Returns

IDisposable

#### Type Parameters

`TAttribute`

### GetBehavior\<TAttribute>(object, object, string, object, TAttribute, bool)

```csharp theme={null}
protected static Action GetBehavior<TAttribute>(object caller, object owner, string propertyName, object link, TAttribute attribute, bool isSwap) where TAttribute : LinkUpdateAttribute
```

#### Parameters

`caller` object

`owner` object

`propertyName` string

`link` object

`attribute` TAttribute

`isSwap` bool

#### Returns

Action

#### Type Parameters

`TAttribute`

### GetDefaultAfterBehavior(object, EventPattern\<LinkEventArgs>)

```csharp theme={null}
protected virtual Action GetDefaultAfterBehavior(object source, EventPattern<LinkEventArgs> eventPattern)
```

#### Parameters

`source` object

`eventPattern` EventPattern\<LinkEventArgs>

#### Returns

Action

### GetDefaultBeforeBehavior(object, EventPattern\<LinkEventArgs>)

```csharp theme={null}
protected virtual Action GetDefaultBeforeBehavior(object source, EventPattern<LinkEventArgs> eventPattern)
```

#### Parameters

`source` object

`eventPattern` EventPattern\<LinkEventArgs>

#### Returns

Action

### InitializeProperty(object, IEnumerable\<PropertyInfo>)

```csharp theme={null}
protected override void InitializeProperty(object owner, IEnumerable<PropertyInfo> propertyInfos)
```

#### Parameters

`owner` object

`propertyInfos` IEnumerable\<PropertyInfo>

### InitializeProperty\<TAttribute>(object, IEnumerable\<PropertyInfo>, bool)

```csharp theme={null}
protected void InitializeProperty<TAttribute>(object owner, IEnumerable<PropertyInfo> propertyInfos, bool isSwap = false) where TAttribute : LinkUpdateAttribute
```

#### Parameters

`owner` object

`propertyInfos` IEnumerable\<PropertyInfo>

`isSwap` bool

#### Type Parameters

`TAttribute`

### Subscribe\<TAttribute>(object, string, object, IEnumerable\<Attribute>, bool)

```csharp theme={null}
protected void Subscribe<TAttribute>(object owner, string propertyName, object link, IEnumerable<Attribute> attributes, bool isSwap = false) where TAttribute : LinkUpdateAttribute
```

#### Parameters

`owner` object

`propertyName` string

`link` object

`attributes` IEnumerable\<Attribute>

`isSwap` bool

#### Type Parameters

`TAttribute`
