Mono Class Library: System.Security.PermissionSet Overview | Members

System.Security.PermissionSet Constructor

Constructs a new instance of the System.Security.PermissionSet class with the values of the specified System.Security.PermissionSet instance.

public PermissionSet (PermissionSet permSet)

Parameters

permSet
The System.Security.PermissionSet instance with which to initialize the values of the new instance, or null to initialize an empty permission set.

Exceptions

TypeReason
ArgumentExceptionpermSet is not null and is not an instance of System.Security.PermissionSet.

Remarks

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).

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0