Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Video tutorials

Conceptual documentation

Commented examples

API documentation

Aspect API

Extensions API

Patterns API

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

Post­Sharp

Post­Sharp.​Aspects

Post­Sharp.​Aspects.​Advices

Advice2

Advice­Instance

Advice­Parameter­Attribute2

Argument­Attribute3

Arguments­Attribute3

Aspect­Initialization­Reason

Async­Call­Id­Attribute3

Awaited­Method­Attribute3

Awaited­Task­Attribute3

Awaiter­Attribute3

Binding­Attribute3

Copy­Custom­Attributes­Attribute3

Current­Task­Attribute3

Custom­Attribute­Override­Action

Declaration­Identifier­Attribute3

Declaration­Name­Attribute3

Event<TDelegate>

Event­Accessor<TDelegate>

Flow­Behavior­Attribute3

Grouping­Advice3

IAdvice­Provider

Import­Location­Advice­Instance3

Import­Member­Advice­Instance2

Import­Member­Attribute3

Import­Member­Order

Import­Method­Advice­Instance3

Initialize­Aspect­Instance­Advice3

Interface­Override­Action

Introduce­Interface­Advice­Instance2

Introduce­Interface­Attribute3

Introduce­Member­Advice­Instance2

Introduce­Member­Attribute3

Introduce­Method­Advice­Instance3

IProperty

Location­Validation­Advice4

Location­Value­Attribute3

Match­Pointcut3

Member­Override­Action

Method­Pointcut3

Multicast­Pointcut3

On­Aspects­Initialized­Advice3

On­Event­Add­Handler­Advice4

On­Event­Invoke­Handler­Advice4

On­Event­Remove­Handler­Advice4

On­Instance­Constructed­Advice3

On­Instance­Location­Initialized­Advice4

On­Location­Get­Value­Advice4

On­Location­Set­Value­Advice4

On­Method­Boundary­Advice4

On­Method­Entry­Advice5

On­Method­Exception­Advice5

On­Method­Exit­Advice5

On­Method­Invoke­Advice5

On­Method­Invoke­Async­Advice5

On­Method­Invoke­Base­Advice4

On­Method­Resume­Advice5

On­Method­Success­Advice5

On­Method­Yield­Advice5

Pointcut2

Property<TValue>

Property<TValue, TIndex>

Property­Getter<TValue>

Property­Getter<TValue, TIndex>

Property­Setter<TValue>

Property­Setter<TValue, TIndex>

Return­Value­Attribute3

Self­Pointcut3

Signature­Pointcut3

State­Attribute3

State­Scope

This­Attribute3

Post­Sharp.​Aspects.​Configuration

Post­Sharp.​Aspects.​Dependencies

Post­Sharp.​Aspects.​Internals

Post­Sharp.​Aspects.​Serialization

Post­Sharp.​Collections

Post­Sharp.​Constraints

Post­Sharp.​Extensibility

Post­Sharp.​Extensibility.​Build­Time­Logging

Post­Sharp.​Reflection

Post­Sharp.​Reflection.​Method­Body

Post­Sharp.​Serialization

  • Article

Class Pointcut

In Metalama, use a foreach loop in the BuildAspect(IAspectBuilder<T>) method, iterate the code model exposed on builder.Target, and add advice using methods of builder.Advice.

Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
[Obsolete("In Metalama, use a <c>foreach</c> loop in the 'IAspect<T>.BuildAspect(IAspectBuilder<T>)' method, iterate the code model exposed on <c>builder</c>.'IAspectBuilder<TAspectTarget>.Target', and add advice using methods of <c>builder</c>.'IAspectBuilder.Advice'.", false)]
public abstract class Pointcut : Attribute

Constructors

Name Description
Pointcut()

Extension Methods

  • Navigation