IPointcutEngine.Initialize Method |
Initializes the current pointcut engine.
Namespace: PostSharp.Sdk.AspectWeaver
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
bool Initialize( AspectWeaver aspectWeaver, IAnnotationInstance pointcutAnnotation, AdviceInfo advice, MulticastTargets validTargets, MulticastAttributes validAttributes )
Parameters
- aspectWeaver
- Type: PostSharp.Sdk.AspectWeaver.AspectWeaver
The parent AspectWeaver. - pointcutAnnotation
- Type: PostSharp.Sdk.CodeModel.IAnnotationInstance
Annotation (custom attribute) representing the pointcut that will be evaluated by the current engine. - advice
- Type: PostSharp.Sdk.AspectWeaver.AdviceInfo
- validTargets
- Type: MulticastTargets
Kinds of elements of code that the pointcut is allowed to return. - validAttributes
- Type: MulticastAttributes
Attributes of elements of code that the pointcut is allowed to return.
Return Value
Type: Boolean[Missing <returns> documentation for "M:PostSharp.Sdk.AspectWeaver.IPointcutEngine.Initialize(PostSharp.Sdk.AspectWeaver.AspectWeaver,PostSharp.Sdk.CodeModel.IAnnotationInstance,PostSharp.Sdk.AspectWeaver.AdviceInfo,PostSharp.Extensibility.MulticastTargets,PostSharp.Extensibility.MulticastAttributes)"]