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

System.Security.PermissionSet.Copy Method

Returns a new System.Security.PermissionSet containing copies of the objects in the current instance.

public virtual PermissionSet Copy ()

Returns

A new System.Security.PermissionSet that is value equal to the current instance.

Remarks

Operation
This method creates copies of the permission objects in the current instance, and adds them to the new instance.

This method calls the System.Security.PermissionSet constructor that takes a System.Security.PermissionSet argument, and passes the current instance as that parameter.

Usage
Use this method to create a new System.Security.PermissionSet instance containing permissions that are identical to the permissions contained in the current instance.

Requirements

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