AspectInstance Constructor (Object, IAspect, AspectConfiguration) |
Initializes a new AspectInstance from a runtime aspect instance (IAspect)
and its AspectConfiguration.
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 6.10.14.0 (6.10.14.0)
C#
public AspectInstance( Object targetElement, IAspect aspect, AspectConfiguration aspectConfiguration )
Parameters
- targetElement
- Type: System.Object
Code element (Assembly, Type, FieldInfo, MethodBase, PropertyInfo, EventInfo, ParameterInfo, or LocationInfo) to which the current AspectInstance is applied. - aspect
- Type: PostSharp.Aspects.IAspect
The aspect runtime instance. - aspectConfiguration
- Type: PostSharp.Aspects.Configuration.AspectConfiguration
The aspect configuration (the type of this parameter should be equal to the type configuration objects expected by the concrete aspect).