LocationValidationContext Enumeration |
Enumerates the possible contexts in which the location validation advices can be invoked.
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 6.9.11.0 (6.9.11.0)
C#
public enum LocationValidationContext
Member name | Value | Description | |
---|---|---|---|
None | 0 | None. | |
Precondition | 1 | The value is being validated on method entry. | |
SuccessPostcondition | 2 | The value is being validated just before the method successfully returns. |
This enumeration can be passed as an argument to the method marked with the LocationValidationAdvice attribute.