A Brief Review of Other Security Actions

There are many security actions. An exhaustive discussion would require a tome of its own. In fact, such a volume exists: .NET Framework Security by Brian LaMacchia et al. [2002]. Here is a brief explanation of security actions to help point you in the right direction when you have a specific need. (I excluded the Demand and Assert actions, which we have already covered.)

The LinkDemand Action

This security action applies to classes and methods. LinkDemand is evaluated when the assembly is JITted, and the immediate call must have the requested permission.

The InheritanceDemand Action

This security action applies to classes and methods. InheritanceDemand, evaluated at load time, requires that the subclass ...

Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.