PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Dependencies Namespace / Standard­Effects Class

StandardEffects Class

List of standard effects.
Inheritance Hierarchy

Namespace:  PostSharp.Aspects.Dependencies
Assembly:  PostSharp (in PostSharp.dll) Version: (
public static class StandardEffects

The StandardEffects type exposes the following members.

Public methodStatic memberGetInterfaceIntroductionEffect
Gets a string representing the effect of introducing an interface into a type.
Public methodStatic memberGetMemberImportEffect
Gets a string representing the effect of importing a member into from the target type into the aspect.
Public methodStatic memberGetMemberIntroductionEffect
Gets a string representing the effect of introducing a member into a type.
Public fieldStatic memberChangeControlFlow
Change the flow control (for instance by having the possibility to skip execution of an intercepted method).
Public fieldStatic memberCustom
Custom effect (implemented in an aspect advice). All advices have this effect by default, unless they are annotated by WaiveAspectEffectAttribute.
Public fieldStatic memberCustomAttributeIntroduction
Introduction of a custom attribute.
Public fieldStatic memberInterfaceIntroduction
Introduction of an interface.
Public fieldStatic memberMemberImport
Import of a type member.
Public fieldStatic memberMemberIntroduction
Introduction of a type member.

See AspectEffectDependencyAttribute for a discussion of effects.

This list is not meant to be extended by vendors providing concrete aspects (implementing some business functionality). Roles should be used to categorized the business effect of concrete aspects. However, if you implement a new kind of abstract aspect (for instance member suppression), you may need to define new effects.

In that case, we at PostSharp encourage you contact us to define a new role string. If you define a new role string, we recommend you clearly define it so that users of your aspect can express dependencies with their own aspects, or third-party aspects.

See Also