PostSharpAPI ReferencePost­Sharp.​AspectsAspectAspect­Priority
Open sandboxFocus

Aspect.AspectPriority Property


Gets or sets the weaving priority of the aspect.

public int AspectPriority { get; set; }
Property Value
Type Description

The aspect priority, or 0 if the aspect priority is not specified.


Advices with lower priority are executed before in case of 'entry' semantics (entering or invoking a method, setting a field value), but this order is inverted for advices of 'exit' semantics (leaving a method, getting a field value).

This property must not be confused with AttributePriority, which solely influences the multicasting process.

See Also