PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesInitialize­Aspect­Instance­Advice
Open sandboxFocus

InitializeAspectInstanceAdvice Class

Custom attribute that, when applied to a method of an aspect class, specifies that this method should be invoked whenever the aspect instance needs to be initialized. The target method must have a void return value and have a single parameter of type AspectInitializationReason. This method is equivalent to RuntimeInitializeInstance()

Inheritance
System.Object
InitializeAspectInstanceAdvice
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
[RequiresDebuggerEnhancement]
public sealed class InitializeAspectInstanceAdvice : Advice

Constructors

Name Description
InitializeAspectInstanceAdvice()