In Metalama, the valid targets are determined by the declaration types for which the IAspect<T> interface is implemented. Additionally, you can implement the BuildEligibility(IEligibilityBuilder<T>) method. However, the main features of MulticastAttribute have been ported to Metalama. The equivalent to this attribute is MulticastTargets.
Namespace: PostSharp.Extensibility
Assembly: Metalama.Migration.dll
Syntax
[Flags]
[Obsolete("In Metalama, the valid targets are determined by the declaration types for which the 'IAspect<T>' interface is implemented. Additionally, you can implement the 'IEligible<T>.BuildEligibility(IEligibilityBuilder<T>)' method. However, the main features of 'MulticastAttribute' have been ported to Metalama. The equivalent to this attribute is 'MulticastTargets'.", false)]
public enum MulticastTargetsFields
| Name | Description |
|---|---|
| All | |
| AnyMember | |
| AnyType | |
| Assembly | |
| Class | |
| Default | |
| Delegate | |
| Enum | |
| Event | |
| Field | |
| InstanceConstructor | |
| Interface | |
| Method | |
| Parameter | |
| Property | |
| ReturnValue | |
| StaticConstructor | |
| Struct |