NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IStackWalk Interface

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.

Classes that Implement IStackWalk

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.

Remarks

The implementation of this interface by CodeAccessSecurityPermission can usually be inherited by permission and no permission-specific implementation is normally required.

Requirements

Namespace: System.Security

Assembly: mscorlib.dll

See Also

IStackWalk Members | System.Security Namespace