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.Demand

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();

Exceptions

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.

Remarks

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.

See Also

IStackWalk Interface | IStackWalk Members | System.Security Namespace