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

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(LinkOwnerDestroyAttribute))]
[Mixin(typeof(ILinkOwnerDestroyOwner))]
public class LinkOwnerDestroyAttribute : LinkDestroyAttribute, ILinkUpdateOwner, ILinkDestroyOwner, ILinkOwnerDestroyOwner
```

#### 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) ←
[LinkDestroyAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md) ←
[LinkOwnerDestroyAttribute](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkOwnerDestroyAttribute.md)

#### Implements

ILinkUpdateOwner,
ILinkDestroyOwner,
ILinkOwnerDestroyOwner

#### Inherited Members

[LinkDestroyAttribute.\_\_a\$\_instance](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md#VM_Models_Pre_LinkDestroyAttribute___a__instance),
[LinkDestroyAttribute.AfterSetter(object, string, object\[\], Attribute\[\])](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute#VM_Models_Pre_LinkDestroyAttribute_AfterSetter_System_Object_System_String_System_Object___System_Attribute___),
[LinkDestroyAttribute.BeforeSetter(string)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md#VM_Models_Pre_LinkDestroyAttribute_BeforeSetter_System_String_),
[LinkDestroyAttribute.GetDefaultAfterBehavior(object, EventPattern\<LinkEventArgs>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md#VM_Models_Pre_LinkDestroyAttribute_GetDefaultAfterBehavior_System_Object_System_Reactive_EventPattern_VM_Managed_LinkEventArgs__),
[LinkDestroyAttribute.GetDefaultBeforeBehavior(object, EventPattern\<LinkEventArgs>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md#VM_Models_Pre_LinkDestroyAttribute_GetDefaultBeforeBehavior_System_Object_System_Reactive_EventPattern_VM_Managed_LinkEventArgs__),
[LinkDestroyAttribute.InitializeProperty(object, IEnumerable\<PropertyInfo>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md#VM_Models_Pre_LinkDestroyAttribute_InitializeProperty_System_Object_System_Collections_Generic_IEnumerable_System_Reflection_PropertyInfo__),
[LinkDestroyAttribute.AfterEventName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md#VM_Models_Pre_LinkDestroyAttribute_AfterEventName),
[LinkDestroyAttribute.BeforeEventName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkDestroyAttribute.md#VM_Models_Pre_LinkDestroyAttribute_BeforeEventName),
[LinkUpdateAttribute.\_\_a\$\_instance](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute___a__instance),
[LinkUpdateAttribute.AfterSetter(object, string, object\[\], Attribute\[\])](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute#VM_Models_Pre_LinkUpdateAttribute_AfterSetter_System_Object_System_String_System_Object___System_Attribute___),
[LinkUpdateAttribute.BeforeSetter(string)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_BeforeSetter_System_String_),
[LinkUpdateAttribute.GetBehavior\<TAttribute>(object, object, string, object, TAttribute, bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_GetBehavior__1_System_Object_System_Object_System_String_System_Object___0_System_Boolean_),
[LinkUpdateAttribute.GetAfterBehavior\<TAttribute>(object, string, object, EventPattern\<LinkEventArgs>, TAttribute, bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_GetAfterBehavior__1_System_Object_System_String_System_Object_System_Reactive_EventPattern_VM_Managed_LinkEventArgs____0_System_Boolean_),
[LinkUpdateAttribute.GetAfterSubscriber\<TAttribute>(object, string, object, TAttribute, bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_GetAfterSubscriber__1_System_Object_System_String_System_Object___0_System_Boolean_),
[LinkUpdateAttribute.GetBeforeBehavior\<TAttribute>(object, string, object, EventPattern\<LinkEventArgs>, TAttribute, bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_GetBeforeBehavior__1_System_Object_System_String_System_Object_System_Reactive_EventPattern_VM_Managed_LinkEventArgs____0_System_Boolean_),
[LinkUpdateAttribute.GetBeforeSubscriber\<TAttribute>(object, string, object, TAttribute, bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_GetBeforeSubscriber__1_System_Object_System_String_System_Object___0_System_Boolean_),
[LinkUpdateAttribute.GetDefaultAfterBehavior(object, EventPattern\<LinkEventArgs>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_GetDefaultAfterBehavior_System_Object_System_Reactive_EventPattern_VM_Managed_LinkEventArgs__),
[LinkUpdateAttribute.GetDefaultBeforeBehavior(object, EventPattern\<LinkEventArgs>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_GetDefaultBeforeBehavior_System_Object_System_Reactive_EventPattern_VM_Managed_LinkEventArgs__),
[LinkUpdateAttribute.InitializeProperty(object, IEnumerable\<PropertyInfo>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_InitializeProperty_System_Object_System_Collections_Generic_IEnumerable_System_Reflection_PropertyInfo__),
[LinkUpdateAttribute.InitializeProperty\<TAttribute>(object, IEnumerable\<PropertyInfo>, bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_InitializeProperty__1_System_Object_System_Collections_Generic_IEnumerable_System_Reflection_PropertyInfo__System_Boolean_),
[LinkUpdateAttribute.Subscribe\<TAttribute>(object, string, object, IEnumerable\<Attribute>, bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_Subscribe__1_System_Object_System_String_System_Object_System_Collections_Generic_IEnumerable_System_Attribute__System_Boolean_),
[LinkUpdateAttribute.TypeId](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_TypeId),
[LinkUpdateAttribute.AfterEventName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_AfterEventName),
[LinkUpdateAttribute.BeforeEventName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.LinkUpdateAttribute.md#VM_Models_Pre_LinkUpdateAttribute_BeforeEventName),
[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

### LinkOwnerDestroyAttribute()

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

### LinkOwnerDestroyAttribute(Type)

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

#### Parameters

`behaviorType` Type

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

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

#### Parameters

`linkBehaviorType` LinkBehaviorType

`behaviorNames` string\[]

## Fields

### \_\_a\$\_instance

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

#### Field Value

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

## Methods

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

```csharp theme={null}
[Advice(Kind.After, Targets = Target.AnyAccess|Target.Setter)]
public override 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 override void BeforeSetter(string propertyName)
```

#### Parameters

`propertyName` string

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

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

#### Parameters

`owner` object

`propertyInfos` IEnumerable\<PropertyInfo>
