BCL mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.5000.0 2.0.0.0

Defines methods implemented by permission types.

Permission types describe a level of access to secured operations or resources, such as files or environment variables. Permission instances do not confer the right to access a resource or perform an operation; the security system determines whether or not requested permissions are granted. Permissions are used by both application code and the security system in the following ways:

Code requests the permissions it needs in order to run.

Permissions are granted by the security system.

Code demands that calling code has a permission.

Code

alters the default behavior

of the security system by asserting or denying permissions.
- Method
  System.Security.IPermission

  Returns a object of the same type and containing the same values as the current instance.

  A new 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.

  0
  1.0.5000.0
  2.0.0.0
- Method
  System.Void

  Forces a if all callers do not have the permission specified by the current instance.

  The permission check for 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 exception is thrown.

  Notifies the system that a security check is required for all callers of the method that invokes . 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 is thrown by the system.

  Use this method to ensure that callers that call the method containing a call have the permissions described by the current instance.

  A caller does not have the permission specified by the current instance.

  0
  1.0.5000.0
  2.0.0.0
- Method
  System.Security.IPermission `` An object of the same type as the current instance to intersect with the current instance.

  Returns an object that is the intersection of the current instance and the specified object.

  A new object that is the same type as the current instance and represents the intersection of the current instance and . If the intersection is empty, or is , returns .

  The object returns by is a permission that secures the resources and operations secured by two objects: a demand passes the intersection of two objects only if it passes both of the objects.

  If is not and is not of the same type as the current instance, a exception is required to be thrown.

  The following statements are required to be true for all implementations of the method. and represent non-null object references.

  .Intersect() returns a value equal to .
  .Intersect() returns the same value as .Intersect().
  .Intersect() returns .

  Use this method to obtain the set of permissions that are described both by the current instance and the specified object.

  is not and is not of the same type as the current instance. 0 1.0.5000.0 2.0.0.0
- Method
  System.Boolean `` A object of the same type as the current instance that is to be tested for the subset relationship.

  Determines whether the current instance is a subset of the specified object.

  if the current instance is a subset of ; otherwise,. If the current instance is unrestricted, and is not, returns . If is unrestricted, returns . If target is and the current instance does not secure any resources or operations, returns . If target is and the current instance secures one or more resources or operations, returns .

  The current instance is a subset of if the current instance specifies a set of accesses to resources or operations that is wholly contained by . 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 is not and is not of the same type as the current instance, a exception is required to be thrown.

  The following statements are required to be true for all implementations of the method. , , and represent non-null objects.

  .IsSubsetOf( ) returns .
  .IsSubsetOf() returns the same value as .IsSubsetOf() if and only if and represent the same set of permissions.

  if .IsSubsetOf() and .IsSubsetOf( ) both return , .IsSubsetOf( ) returns .

  Use this method to determine if the permissions described by the current instance are also described by the specified object.

  is not and is not of the same type as the current instance. 0 1.0.5000.0 2.0.0.0
- Method
  System.Security.IPermission `` A object of the same type as the current instance to combine with the current instance.

  Returns an object that is the union of the current instance and the specified object.

  A new object of the same type as the current instance that represents the union of the current instance and .

  The object returned by is a permission that represents the permissions described by the current instance and those described by . Any demand that passes either the current instance or is required to pass the union of the two.

  If is not and is not of the same type as the current instance, a exception is required to be thrown.

  The following statements are required to be true for all implementations of the method. and represent non-null objects.

  .Union() returns an object that is value-equal to .
  .Union() returns an object that is value-equal to the object returned by .Union().
  .Union() returns an object that is value-equal to

  .

  Use this method to obtain a object of the same type as the current instance and that describes the permissions described by the current instance and those described by .

  is not and is not of the same type as the current instance. 0 1.0.5000.0 2.0.0.0
0 System.Security.ISecurityEncodable System.Runtime.InteropServices.ComVisible(true)