Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Aspects / IAspect­Builder / Skip­Aspect

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.