OnInstanceConstructedAdvice Class |
Custom attribute that, when applied to a method of an aspect implementing , 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 void return type and accepts no parameter.
System.Object
System.Attribute
PostSharp.Aspects.Advices.Advice
PostSharp.Aspects.Advices.OnInstanceConstructedAdvice
System.Attribute
PostSharp.Aspects.Advices.Advice
PostSharp.Aspects.Advices.OnInstanceConstructedAdvice
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
C#
public sealed class OnInstanceConstructedAdvice : Advice
The OnInstanceConstructedAdvice type exposes the following members.
Name | Description | |
---|---|---|
OnInstanceConstructedAdvice | Initializes a new instance of the OnInstanceConstructedAdvice class |
Name | Description | |
---|---|---|
Description |
A human-readable description of the current advice.
(Inherited from Advice.) | |
LinesOfCodeAvoided |
Reduction in the code lines count achieved by applying the advice instance to one code element.
(Inherited from Advice.) |
Name | Description | |
---|---|---|
QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |