Class LinkDestroyAttribute
Last update: 09.03.2026Namespace: VM.Models.Pre
Assembly: VM.Models.Pre.Aspects.dll
[Aspect(Scope.PerInstance)]
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
[Injection(typeof(LinkDestroyAttribute))]
[Mixin(typeof(ILinkDestroyOwner))]
public class LinkDestroyAttribute : LinkUpdateAttribute, ILinkUpdateOwner, ILinkDestroyOwner
Inheritance
object ← Attribute ← LinkBaseAttribute ← LinkUpdateAttribute ← LinkDestroyAttribute
Derived
Implements
ILinkUpdateOwner, ILinkDestroyOwner
Inherited Members
LinkUpdateAttribute.__a$_instance, LinkUpdateAttribute.AfterSetter(object, string, object[], Attribute[]), LinkUpdateAttribute.BeforeSetter(string), LinkUpdateAttribute.GetBehavior<TAttribute>(object, object, string, object, TAttribute, bool), LinkUpdateAttribute.GetAfterBehavior<TAttribute>(object, string, object, EventPattern<LinkEventArgs>, TAttribute, bool), LinkUpdateAttribute.GetAfterSubscriber<TAttribute>(object, string, object, TAttribute, bool), LinkUpdateAttribute.GetBeforeBehavior<TAttribute>(object, string, object, EventPattern<LinkEventArgs>, TAttribute, bool), LinkUpdateAttribute.GetBeforeSubscriber<TAttribute>(object, string, object, TAttribute, bool), LinkUpdateAttribute.GetDefaultAfterBehavior(object, EventPattern<LinkEventArgs>), LinkUpdateAttribute.GetDefaultBeforeBehavior(object, EventPattern<LinkEventArgs>), LinkUpdateAttribute.InitializeProperty(object, IEnumerable<PropertyInfo>), LinkUpdateAttribute.InitializeProperty<TAttribute>(object, IEnumerable<PropertyInfo>, bool), LinkUpdateAttribute.Subscribe<TAttribute>(object, string, object, IEnumerable<Attribute>, bool), LinkUpdateAttribute.TypeId, LinkUpdateAttribute.AfterEventName, LinkUpdateAttribute.BeforeEventName, LinkBaseAttribute.Dispose(), LinkBaseAttribute.Initialize(object), LinkBaseAttribute.AddCache(string, IDisposable), LinkBaseAttribute.DisposeManagedResources(), LinkBaseAttribute.InitializeProperty(object, IEnumerable<PropertyInfo>), LinkBaseAttribute.Unsubscribe(string), LinkBaseAttribute.CacheItems, LinkBaseAttribute.IsCacheEmpty
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
LinkDestroyAttribute()
public LinkDestroyAttribute()
LinkDestroyAttribute(Type)
public LinkDestroyAttribute(Type behaviorType)
Parameters
behaviorType Type
LinkDestroyAttribute(LinkBehaviorType, params string[])
public LinkDestroyAttribute(LinkBehaviorType linkBehaviorType, params string[] behaviorNames)
Parameters
linkBehaviorType LinkBehaviorType
behaviorNames string[]
Fields
__a$_instance
public static readonly LinkDestroyAttribute __a$_instance
Field Value
Properties
AfterEventName
protected override string AfterEventName { get; }
Property Value
string
BeforeEventName
protected override string BeforeEventName { get; }
Property Value
string
Methods
AfterSetter(object, string, object[], Attribute[])
[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)
[Advice(Kind.Before, Targets = Target.AnyAccess|Target.Setter)]
public override void BeforeSetter(string propertyName)
Parameters
propertyName string
GetDefaultAfterBehavior(object, EventPattern<LinkEventArgs>)
protected override Action GetDefaultAfterBehavior(object source, EventPattern<LinkEventArgs> eventPattern)
Parameters
source object
eventPattern EventPattern<LinkEventArgs>
Returns
Action
GetDefaultBeforeBehavior(object, EventPattern<LinkEventArgs>)
protected override Action GetDefaultBeforeBehavior(object source, EventPattern<LinkEventArgs> eventPattern)
Parameters
source object
eventPattern EventPattern<LinkEventArgs>
Returns
Action
InitializeProperty(object, IEnumerable<PropertyInfo>)
protected override void InitializeProperty(object owner, IEnumerable<PropertyInfo> propertyInfos)
Parameters
owner object
propertyInfos IEnumerable<PropertyInfo>