Constructs a new instance of the System.Security.PermissionSet class with the values of the specified System.Security.PermissionSet instance.
- permSet
- The System.Security.PermissionSet instance with which to initialize the values of the new instance, or null to initialize an empty permission set.
Type Reason ArgumentException permSet is not null and is not an instance of System.Security.PermissionSet.
If permSet is not null , the new instance is initialized with copies of the objects in permSet, not references to those objects. If permSet is null, the new instance contains no permissions.
Note: To add a permission to an empty System.Security.PermissionSet , use PermissionSet.AddPermission(IPermission).
Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0