PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesOn­Instance­Constructed­Advice
Open sandboxFocus

Class OnInstanceConstructedAdvice

Custom attribute that, when applied to a method of an aspect, specifies that this method should be executed after the last instance constructor of the target class of the aspect has completed execution. That is, this method will be invoked when the target object will be fully constructed. This custom attribute can be applied only on methods that have return type void and no parameters.

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

Constructors

Name Description
OnInstanceConstructedAdvice() PostSharp.Aspects.Advices.OnInstanceConstructedAdvice