MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsIAspect­BuilderSkip­Aspect
Open sandboxFocus

Method SkipAspect

SkipAspect()

Skips the application of the aspect to the code. Any provided advice is ignored, but provided children aspects and diagnostics are preserved. In multi-layer aspects, the next layers of the aspect are skipped.

Declaration
void SkipAspect()
Remarks

Note that reporting an error automatically causes the aspect to be skipped, but, additionally, provided children aspects are ignored.