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.
interface System.​Security.​IPermission
Assembly: System.Runtime
Implemented Interfaces
Defines methods implemented by permission types.
Methods
Returns A copy of the current permission.
void
Demand​()
Throws a <see cref="T:System.Security.SecurityException" /> at run time if the security requirement is not met.
Intersect​(IPermission target)
Creates and returns a permission that is the intersection of the current permission and the specified permission.
Returns A new permission that represents the intersection of the current permission and the specified permission. This new permission is <see langword="null" /> if the intersection is empty.
target
A permission to intersect with the current permission. It must be of the same type as the current permission.
bool
IsSubsetOf​(IPermission target)
Determines whether the current permission is a subset of the specified permission.
Returns <see langword="true" /> if the current permission is a subset of the specified permission; otherwise, <see langword="false" /> .
target
A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.
Union​(IPermission target)
Creates a permission that is the union of the current permission and the specified permission.
Returns A new permission that represents the union of the current permission and the specified permission.
target
A permission to combine with the current permission. It must be of the same type as the current permission.