Scope of #Pragma directives

If I have a #Pragma DisableBackgroundTasks, or DisableBoundsChecking in a main routine, do these directives extend to the routines that are called from this main routine? I can’t find anything in the documentation about this.

No. They only affect the method or event they’re used in.

Thanks Andrew., first paragraph

Whoops. I somehow skimmed over that and missed it. Thanks for pointing it out.