PostSharpAPI ReferencePost­Sharp.​Aspects.​DependenciesStandard­Effects
Open sandboxFocus

StandardEffects Class

List of standard effects.

Inheritance
StandardEffects
Namespace: PostSharp.Aspects.Dependencies
Assembly: PostSharp.dll
Syntax
public static class StandardEffects : Object
Remarks

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.

Fields

Name Description
ChangeControlFlow

Change the flow control (for instance by having the possibility to skip execution of an intercepted method).

Custom

Custom effect (implemented in an aspect advice). All advices have this effect by default, unless they are annotated by WaiveAspectEffectAttribute.

CustomAttributeIntroduction

Introduction of a custom attribute.

InterfaceIntroduction

Introduction of an interface.

MemberImport

Import of a type member.

MemberIntroduction

Introduction of a type member.

Methods

Name Description
GetInterfaceIntroductionEffect(String)

Gets a string representing the effect of introducing an interface into a type.

GetMemberImportEffect(String)

Gets a string representing the effect of importing a member into from the target type into the aspect.

GetMemberIntroductionEffect(String)

Gets a string representing the effect of introducing a member into a type.

See Also