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

IAspectBuilder.SkipAspect Method

SkipAspect()

Skips the application of the aspect to the code. Any provided advice and child aspects are ignored, but provided 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.