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

System.Security.IPermission.Copy Method

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

public IPermission Copy ()

Returns

A new System.Security.IPermission object of the same type and containing the same values as the current instance.

Remarks

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

Note to Inheritors
Implement this method to provide the system with a means of duplicating permission objects.

Usage
Use this method to obtain a copy of the current instance that is identical to the current instance.

Requirements

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