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

System.Security.CodeAccessPermission.Copy Method

Returns a System.Security.CodeAccessPermission containing the same values as the current instance.

public abstract IPermission Copy ()

Returns

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

Remarks

Note: This method is implemented to support the System.Security.IPermission interface.

Operation
The object returned by this method is required be the same type as the current instance and to represent the same access to resources as the current instance.

Note to Inheritors
Override this method to create a copy an instance in a type derived from System.Security.CodeAccessPermission.

Usage
Use this method to obtain a copy of the current instance that has values identical to those of the current instance.

Requirements

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