I want to throw error, if i used methods from this namespace System.IO

For example,

If i write File.Delete("TempPath") , i have to throw undefined Method..