Custom attribute that, when applied on an advice method, specifies to which elements of code this advice applies, based on the kind, name and attributes of code elements. Works similarly to MulticastAttribute.
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public sealed class MulticastPointcut : PointcutRemarks
Unlike MulticastAttribute, this pointcut does not add aspects: it selects, within the target of the aspect, the elements to which the advice applies. For a type-level aspect, it selects among the members declared in the target type; for an aspect applied to a method, field, property or event, it can select only that element. When Targets is not set, the pointcut selects all the kinds of elements that the advice supports.
To select elements with logic that cannot be expressed declaratively, use MethodPointcut.
Constructors
| Name | Description |
|---|---|
| MulticastPointcut() |
Properties
| Name | Description |
|---|---|
| Attributes | Gets or sets the visibilities, scopes, virtualities, and implementation of members to which this attribute applies. |
| MemberName | Gets or sets the expression specifying to which members the aspect extension applies. |
| Targets | Gets or sets the kind of elements to which this aspect extension applies. |