IStackWalk Interface
Manages the stack walk that determines whether all callers in the call stack have the required permissions to access a protected resource.
For a list of all members of this type, see IStackWalk Members.
[Visual Basic] Public Interface IStackWalk [C#] public interface IStackWalk [C++] public __gc __interface IStackWalk [JScript] public interface IStackWalk
Classes that Implement IStackWalk
| Class | Description |
|---|---|
| CodeAccessPermission | Defines the underlying structure of all code access permissions. |
| PermissionSet | Represents a collection that can contain many different types of permissions. |
Remarks
Partially trusted code always presents a security risk. It can sometimes be manipulated to perform actions on behalf of malicious code that does not have permission to access a resource. In this way, malicious code can achieve higher security access than it should be allowed.
The common language runtime helps protect managed code from these attacks by running a stack walk on all calls. The stack walk requires that all code in the call stack has permission to access a protected resource. Because the code attempting the attack will always be somewhere in the call stack, it will be unable to exceed its own security permissions.
Requirements
Namespace: System.Security
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)