Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Security.​IStackWalk

Assembly: System.Runtime

Manages the stack walk that determines whether all callers in the call stack have the required permissions to access a protected resource.

Methods

public void
Assert​()
Asserts that the calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource.
public void
Demand​()
Determines at run time whether all callers in the call stack have been granted the permission specified by the current permission object.
public void
Deny​()
Causes every <see cref="M:System.Security.IStackWalk.Demand" /> for the current object that passes through the calling code to fail.
public void
PermitOnly​()
Causes every <see cref="M:System.Security.IStackWalk.Demand" /> for all objects except the current one that passes through the calling code to fail, even if code higher in the call stack has been granted permission to access other resources.