Class LinkAttribute
Last update: 09.03.2026Namespace: VM.Models.Pre
Assembly: VM.Models.Pre.Aspects.dll
[Aspect(Scope.PerInstance)]
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
[Injection(typeof(LinkAttribute))]
[Mixin(typeof(ILinkOwner))]
public class LinkAttribute : LinkBaseAttribute, ILinkOwner, ILinkAttribute
Inheritance
object ← Attribute ← LinkBaseAttribute ← LinkAttribute
Implements
ILinkOwner, ILinkAttribute
Inherited Members
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
LinkAttribute()
public LinkAttribute()
LinkAttribute(bool)
public LinkAttribute(bool isChild = false)
Parameters
isChild bool
Fields
__a$_instance
public static readonly LinkAttribute __a$_instance
Field Value
Properties
IsChild
Indicates this property is child or not.
public bool? IsChild { get; }
Property Value
bool?
Methods
AfterSetter(object, Type, string, object[], Attribute[])
[Advice(Kind.After, Targets = Target.AnyAccess|Target.Setter)]
public virtual void AfterSetter(object owner, Type declaringType, string propertyName, object[] values, Attribute[] triggers)
Parameters
owner object
declaringType Type
propertyName string
values object[]
triggers Attribute[]
BeforeSetter(object, Type, string, Attribute[])
[Advice(Kind.Before, Targets = Target.AnyAccess|Target.Setter)]
public virtual void BeforeSetter(object owner, Type declaringType, string propertyName, Attribute[] triggers)
Parameters
owner object
declaringType Type
propertyName string
triggers Attribute[]
InitializeProperty(object, IEnumerable<PropertyInfo>)
protected override void InitializeProperty(object owner, IEnumerable<PropertyInfo> propertyInfos)
Parameters
owner object
propertyInfos IEnumerable<PropertyInfo>