Open sandboxFocus

Class StandardEffects

Defines the standard effects.

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

See AspectEffectDependencyAttribute for a discussion of effects.

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

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

Fields

Name Description
ChangeControlFlow

The change of the control flow, for example by skipping the execution of an intercepted method.

Custom

A custom effect, implemented in an aspect advice. All advices have this effect by default, unless they are annotated with WaiveAspectEffectAttribute.

CustomAttributeIntroduction

The introduction of a custom attribute.

InterfaceIntroduction

The introduction of an interface.

MemberImport

The import of a type member.

MemberIntroduction

The introduction of a type member.

Methods

Name Description
GetInterfaceIntroductionEffect(string)

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

GetMemberImportEffect(string)

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

GetMemberIntroductionEffect(string)

Gets a string that represents the effect of introducing a member into a type.

See Also