SkipAspect()
Cancels the application of this aspect to the target declaration.
Declaration
void SkipAspect()Remarks
When this method is called, any advice and child aspects added by this aspect are ignored, but diagnostics already reported are preserved. In aspects with multiple layers (see LayersAttribute), subsequent layers are also skipped.
Note: Reporting an error diagnostic automatically causes the aspect to be skipped, so you don't need to call this method explicitly after reporting errors.