public interface IPermission : ISecurityEncodable
|
Copy | Creates and returns an identical copy of the current permission. |
Demand | Forces a SecurityException at run time if all callers higher in the call stack have not been granted the permission specified by the current instance. |
Intersect | Creates and returns a permission that is the intersection of the current permission and the specified permission. |
IsSubsetOf | Determines whether the current permission is a subset of the specified permission. |
Union | Creates a permission that is the union of the current permission and the specified permission. |
Hierarchy:
IPermission Copy(); |
void Demand(); |
The permissions of the code that calls this method are not examined; the check begins from the immediate caller of that code and proceeds up the stack. The call stack is typically represented as growing down, so that methods higher in the call stack call methods lower in the call stack. CodeAccessPermission.Demand succeeds only if no SecurityException is raised.
IPermission Intersect( |
target
Exception Type | Condition |
---|---|
ArgumentException | The target parameter is not null and is not an instance of the same class as the current permission. |
The following statements are required to be true for all implementations of the IPermission.Intersect method.X and Y represent IPermission object references that are not null.
bool IsSubsetOf( |
target
Exception Type | Condition |
---|---|
ArgumentException | The target parameter is not of the same type as the current permission. |
The following statements are required to be true for all implementations of the IPermission.IsSubsetOf method.X, Y, and Z represent IPermission objects that are not null.
IPermission Union( |
target
Exception Type | Condition |
---|---|
ArgumentException | The target parameter is not of the same type as the current permission object. |
The following statements are required to be true for all implementations of the IPermission.Union method.X and Y represent IPermission objects that are not null.