Code Access Security is a part of the .NET Framework. It can be used to restrict code from calling other code that is considered to perform a privileged action.

Code Access Security in .NET 4.0