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

IAspectBuilder.SkipAspect Method


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.

void SkipAspect()

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