The IStackWalk interface defines methods handling the stack walk and override features that must be supported by all code access security permissions.
Code access security provides runtime protection against unauthorized calls by checking that all callers have the necessary granted permission that is demanded by the called code. In addition to demands, stack walk interface handles cases where code needs to override and either assert- not require further callers above it on the stack to have some permission- or deny (or permit-only) some permission.
For a complete description of code access security and how demands and overrides work refer to the Permissions specification.
IStackWalk
[Visual Basic] Public Interface IStackWalk [C#] public interface IStackWalk [C++] public __gc __interface IStackWalk
[JScript] In JScript, you can use the interfaces in the NGWS frameworks, but you cannot define your own.
Class | Description |
---|---|
CodeAccessPermission | CodeAccessPermission is an abstract base class that provides functionality required by all code access permissions. Some of its methods are abstract and must be implemented by non-abstract subclasses of CodeAccessPermission. Some of the implemented methods cannot be overridden. |
PermissionSet | Represents a set of permissions of different types. This class supports all functionality of a permission, for the set of permissions as a whole. |
The implementation of this interface by CodeAccessSecurityPermission can usually be inherited by permission and no permission-specific implementation is normally required.
Namespace: System.Security
Assembly: mscorlib.dll