| Variables: |
|---|
| Constructors: |
|---|
| Functions: |
|---|
public System.Security.IPermission Copy() Returns a System.Security.IPermission object of the same type and containing the same values as the current instance. Returns: A new System.Security.IPermission object of the same type and containing the same values as the current instance. The object returned by this method is required to be a deep copy of the current instance; any objects referenced by the current instance are duplicated in the copy. Implement this method to provide the system with a means of duplicating permission objects. Use this method to obtain a copy of the current instance that is identical to the current instance. |
public System.Void Demand() Forces a System.Security.SecurityException if all callers do not have the permission specified by the current instance. Throws: : A caller does not have the permission specified by the current instance. The permission check for System.Security.IPermission.Demand begins with the immediate caller of the code that calls this method and continues until all callers have been checked or a caller has been found that is not granted the demanded permission, in which case a System.Security.SecurityException exception is thrown. Notifies the system that a security check is required for all callers of the method that invokes System.Security.IPermission.Demand. All callers are required to have the permissions described by the current instance. If one of the callers asserts the permissions and that caller has the permissions, the system is required to allow all callers that have not been checked to bypass the security check. If the security check fails, a System.Security.SecurityException is thrown by the system. Use this method to ensure that callers that call the method containing a System.Security.IPermission.Demand call have the permissions described by the current instance. |
public System.Security.IPermission Intersect(System.Security.IPermission target) Returns an object that is the intersection of the current instance and the specified System.Security.IPermission object. Parameter target: An object of the same type as the current instance to intersect with the current instance. Returns: A new System.Security.IPermission object that is the same type as the current instance and represents the intersection of the current instance and target. If the intersection is empty, or target is null, returns null. If the current instance is unrestricted, returns a copy of target. If target is unrestricted, returns a copy of the current instance. Throws: : target is not null and is not of the same type as the current instance. The object returns by System.Security.IPermission.Intersect(System.Security.IPermission) is a permission that secures the resources and operations secured by two System.Security.IPermission objects: a demand passes the intersection of two objects only if it passes both of the objects. If target is not null and is not of the same type as the current instance, a System.ArgumentException exception is required to be thrown. The following statements are required to be true for all implementations of the System.Security.IPermission.Intersect(System.Security.IPermission) method. X and Y represent non-null System.Security.IPermission object references. Use this method to obtain the set of permissions that are described both by the current instance and the specified object. |
public System.Boolean IsSubsetOf(System.Security.IPermission target) Determines whether the current instance is a subset of the specified object. Parameter target: A System.Security.IPermission object of the same type as the current instance that is to be tested for the subset relationship. Returns: true if the current instance is a subset of target ; otherwise, false. If the current instance is unrestricted, and target is not, returns false. If target is unrestricted, returns true. If target is null and the current instance does not secure any resources or operations, returns true. If target is null and the current instance secures one or more resources or operations, returns false . Throws: : target is not null and is not of the same type as the current instance. The current instance is a subset of target if the current instance specifies a set of accesses to resources or operations that is wholly contained by target. For example, a permission that represents read access to a file is a subset of a permission that represents read and write access to the file. If target is not null and is not of the same type as the current instance, a System.ArgumentException exception is required to be thrown. The following statements are required to be true for all implementations of the System.Security.IPermission.IsSubsetOf(System.Security.IPermission) method. X, Y, and Z represent non-null System.Security.IPermission objects. Use this method to determine if the permissions described by the current instance are also described by the specified object. |
public System.Security.IPermission Union(System.Security.IPermission target) Returns an object that is the union of the current instance and the specified object. Parameter target: A System.Security.IPermission object of the same type as the current instance to combine with the current instance. Returns: A new System.Security.IPermission object of the same type as the current instance that represents the union of the current instance and target. Throws: : target is not null and is not of the same type as the current instance. The object returned by System.Security.IPermission.Union(System.Security.IPermission) is a permission that represents the permissions described by the current instance and those described by target . Any demand that passes either the current instance or target is required to pass the union of the two. If target is not null and is not of the same type as the current instance, a System.ArgumentException exception is required to be thrown. The following statements are required to be true for all implementations of the System.Security.IPermission.Union(System.Security.IPermission) method. X and Y represent non-null System.Security.IPermission objects. Use this method to obtain a System.Security.IPermission object of the same type as the current instance and target that describes the permissions described by the current instance and those described by target. |