CodeAccessPermission.Copy Method ()
.NET Framework (current version)
When implemented by a derived class, creates and returns an identical copy of the current permission object.
mscorlib (in mscorlib.dll)
Public MustOverride Function Copy As IPermission
A copy of a permission object represents the same access to resources as the original permission object.
Notes to Inheritors:
You must override this method in a derived class.
The following code example shows an override of the Copy method. This code example is part of a larger example provided for the CodeAccessPermission class.
Public Overrides Function Copy() As IPermission
Dim name As String
name = m_name
Return New NameIdPermission(name)
End Function 'Copy
Return to top
Available since 1.1