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.​IPermission

Assembly: System.Runtime

Defines methods implemented by permission types.

Methods

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