Open sandboxFocus

Interface IValidableAnnotation

Interface that, when implemented by a custom attribute (Attribute), causes PostSharp to invoke a validation method for every instance of that custom attribute.

Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
[RequirePostSharp(null, "ValidateAnnotations")]
public interface IValidableAnnotation
Remarks

Use this interface to validate the usage of custom attributes that are not aspects. Aspects derived from Aspect already implement it: override CompileTimeValidate(object) instead.

Methods

Name Description
CompileTimeValidate(object)

Method invoked at build time to ensure that the aspect has been applied to the right target.

See Also