Determines at run-time whether all callers in the call chain have been granted the permission specified by the current permission object.
[Visual Basic] Sub Demand() [C#] void Demand(); [C++] void Demand() = 0; [JScript] function Demand();
Exception Type | Condition |
---|---|
SecurityException | if any caller in the call chain does not have the permission demanded or if one or more callers in the call chain has called Deny or PermitOnly on the demanded permission. |
If no SecurityException is raised, the demand succeeds.
The permissions of the code that calls this method itself are not checked; rather, the check begins from the immediate caller of that code and proceeds up the stack.
IStackWalk Interface | IStackWalk Members | System.Security Namespace